diff --git a/src/git.ts b/src/git.ts index 85769bf1f..52ba6ed8f 100644 --- a/src/git.ts +++ b/src/git.ts @@ -310,7 +310,7 @@ export async function deploy(action: ActionInterface): Promise { // If the push failed for any fatal reason other than being rejected, // there is a problem - if (!rejected && pushResult.stderr.startsWith('fatal:')) + if (!rejected && pushResult.stderr.trim().startsWith('fatal:')) throw new Error(pushResult.stderr) } while (rejected) }