From 04a1384a632443469d547ef2c776bf93a2da609e Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 17 Jul 2022 13:23:40 +0000 Subject: [PATCH] =?UTF-8?q?Deploy=20Production=20Code=20for=20Commit=2044d?= =?UTF-8?q?3af880f5bbf013fd7ee89dbd8ac182ccc8c9e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/git.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/git.js b/lib/git.js index bd14488a..1f3fe3a8 100644 --- a/lib/git.js +++ b/lib/git.js @@ -182,8 +182,7 @@ function deploy(action) { (0, core_1.info)('Updates were rejected'); // 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) + if (!rejected && pushResult.stderr.includes('fatal:')) throw new Error(pushResult.stderr); } while (rejected); }