-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swallow "remote not found" error on git before 2.30 (#514)
Git 2.30.0 introduced a dedicated exit code (2) for when `git remote rm` failed because the remote does not exist. Earlier versions of git always returned code 128, and only parsing stderr could tell the error conditions apart. Support all versions of git by checking for both exit code 2, and exit code 128 with the specific error message. The exit code 2 check remains more robust against localized output, hence it's kept in addition to the output parsing path that was removed in #505. Fixes #509
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 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
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