|
|
@ -16,8 +16,8 @@ module.exports = { |
|
|
|
console.log(error); |
|
|
|
return; |
|
|
|
} |
|
|
|
console.log("git push " + origin + " " + banch); |
|
|
|
exec("git push " + origin + " " + banch, function (error, stdout, stderr) { |
|
|
|
console.log(banch ? "git push " + origin + " " + banch : "git push " + origin); |
|
|
|
exec(banch ? "git push " + origin + " " + banch : "git push " + origin, function (error, stdout, stderr) { |
|
|
|
if (error) { |
|
|
|
reject(error); |
|
|
|
console.log(error); |
|
|
@ -36,7 +36,7 @@ module.exports = { |
|
|
|
console.log(error); |
|
|
|
return; |
|
|
|
} |
|
|
|
exec("git push " + origin + " " + banch, function (error, stdout, stderr) { |
|
|
|
exec(banch ? "git push " + origin + " " + banch : "git push " + origin, function (error, stdout, stderr) { |
|
|
|
if (error) { |
|
|
|
reject(error); |
|
|
|
console.log(error); |
|
|
@ -47,7 +47,7 @@ module.exports = { |
|
|
|
}) |
|
|
|
}, |
|
|
|
push(origin, banch) { |
|
|
|
exec("git push " + origin + " " + banch, function (error, stdout, stderr) { |
|
|
|
exec(banch ? "git push " + origin + " " + banch : "git push " + origin, function (error, stdout, stderr) { |
|
|
|
if (error) { |
|
|
|
reject(error); |
|
|
|
console.log(error); |
|
|
|