From ccec05930a179a728cc80f624fc94c46fcb70ed9 Mon Sep 17 00:00:00 2001 From: James Ives Date: Wed, 20 Jul 2022 11:02:32 -0400 Subject: [PATCH] fix: Trims --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.ts b/src/git.ts index 85769bf1..52ba6ed8 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) }