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); }