-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(affected): no longer error if
main
does not exist (#9061)
### Description #9045 changed the error type of `changed_files` as we could now exit with `Error::UnableToResolveRef` instead of just returning the raw `Error::Git`. This resulted in us failing to catch the error type. We keep the previous catch as there are still scenarios where we'll be able to resolve a ref, but the checkout will not include the merge base. Existing integration test did not capture this as it our mocked shallow clone leaves the branch `main` intact, just missing the commit that would be the merge base. ### Testing Instructions Added unit test
- Loading branch information
1 parent
1b9f0ea
commit 473fb53
Showing
1 changed file
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters