From c7cac6cd394ef55d73e3e4de594366347108af57 Mon Sep 17 00:00:00 2001 From: obkoro1 <1677593011@qq.com> Date: Thu, 2 Jan 2020 22:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A8=E9=80=81=E5=88=86?= =?UTF-8?q?=E6=94=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/commitHandle.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/commitHandle.ts b/src/models/commitHandle.ts index 7061c67..065bd52 100644 --- a/src/models/commitHandle.ts +++ b/src/models/commitHandle.ts @@ -1,8 +1,8 @@ /* * Author : OBKoro1 * Date : 2019-12-30 16:59:30 - * @LastEditors : OBKoro1 - * @LastEditTime : 2020-01-02 20:45:40 + * LastEditors : OBKoro1 + * LastEditTime : 2020-01-02 22:14:59 * FilePath : /autoCommit/src/models/commitHandle.ts * Description : commit 具体操作 * https://github.com/OBKoro1 @@ -115,7 +115,7 @@ class CommitHandle { // 异步执行命令 让出线程 打印日志 等 commitMsg = await new Promise((resolve, reject) => { // TODO: git push 到当前分支 - let cmd = `cd ${this.paramsObj.itemSrc} && git add . && git commit -m 'autoCommit' --date='${time}' && git pull && git push origin master`; + let cmd = `cd ${this.paramsObj.itemSrc} && git add . && git commit -m 'autoCommit' --date='${time}' && git pull && git push`; exec(cmd, (error, stdout, stderr) => { if (error) { outputLog(`执行命令出错:${cmd}`);