We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dfbc4c commit 331dd26Copy full SHA for 331dd26
src/git.ts
@@ -308,9 +308,10 @@ export async function deploy(action: ActionInterface): Promise<Status> {
308
309
if (rejected) info('Updates were rejected')
310
311
- // If the push failed for any reason other than being rejected,
+ // If the push failed for any fatal reason other than being rejected,
312
// there is a problem
313
- if (!rejected && pushResult.stderr) throw new Error(pushResult.stderr)
+ if (!rejected && pushResult.stderr.startsWith('fatal:'))
314
+ throw new Error(pushResult.stderr)
315
} while (rejected)
316
}
317
0 commit comments