From a9eae6fc141c07c36883d823f2850f4c089ac733 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 17 Jul 2022 09:22:37 -0400 Subject: [PATCH] Update git.ts --- src/git.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }