diff --git a/src/git.ts b/src/git.ts index 152c4d26..c133b09d 100644 --- a/src/git.ts +++ b/src/git.ts @@ -310,8 +310,7 @@ export async function deploy(action: ActionInterface): Promise { // If the push failed for any reason other than being rejected, // there is a problem - console.log('THE LOG---', pushResult.stderr) - if (!rejected && pushResult.stderr) throw new Error(pushResult.stderr) + if (!rejected && pushResult.stderr.includes('fatal:')) throw new Error(pushResult.stderr) } while (rejected) }