From cbfd1a1ca9a293cf0c50264ea9d4804185ed0f3a Mon Sep 17 00:00:00 2001 From: 1549469775 <1549469775@qq.com> Date: Wed, 13 Nov 2019 15:55:13 +0800 Subject: [PATCH] 'sa' --- git_util.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/git_util.js b/git_util.js index 5a85633..ce1459f 100644 --- a/git_util.js +++ b/git_util.js @@ -7,13 +7,21 @@ module.exports = { if (error) { reject(error); console.log(error); - // return; + return; } console.log("git commit -m '" + msg + "'"); exec("git commit -m '" + msg + "'", function (error, stdout, stderr) { if (error) { - reject(error); + // reject(error); console.log(error); + exec(banch ? "git push " + origin + " " + banch : "git push " + origin, function (error, stdout, stderr) { + if (error) { + reject(error); + console.log(error); + return; + } + resolve(); + }) return; } console.log(banch ? "git push " + origin + " " + banch : "git push " + origin);