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