Merge pull request #13837 from desktop/handle-128-exit-code

Add 128 again as successful code for `git remote` commands
This commit is contained in:
Sergio Padrino 2022-02-09 11:57:57 +01:00 committed by GitHub
commit e96d8188e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ export async function removeRemote(
name: string
): Promise<void> {
const options = {
successExitCodes: new Set([0, 2]),
successExitCodes: new Set([0, 2, 128]),
}
await git(
@ -79,7 +79,7 @@ export async function getRemoteURL(
['remote', 'get-url', name],
repository.path,
'getRemoteURL',
{ successExitCodes: new Set([0, 2]) }
{ successExitCodes: new Set([0, 2, 128]) }
)
if (result.exitCode !== 0) {