8000 fix:代码未修改,commit执行错误 · Dollbug/pp-git-cli@7445ee7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7445ee7

Browse files
author
chenxf
committed
fix:代码未修改,commit执行错误
1 parent 5310f3f commit 7445ee7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ function updateCode({ commit = "update" } = {}) {
1919
}
2020

2121
function checkoutBranch({ branch }) {
22-
// updateCode();
22+
updateCode();
2323
execSync(`git checkout ${branch}`);
2424
execSync(`git pull origin ${branch}`);
2525
}
2626

2727
function feature({ feature }) {
28-
// updateCode();
28+
updateCode();
2929
const dateStr = utils.getDateStr();
3030
const branch = `feature/${dateStr}-${feature}`;
3131
execSync(`git checkout -b ${branch}`);
3232
execSync(`git push origin ${branch}`);
3333
}
3434

3535
function release({ release }) {
36-
// updateCode();
36+
updateCode();
3737
const version = utils.getVersion();
3838
const branch = `${release}${version}`;
3939
execSync(`git checkout -b ${branch}`);

0 commit comments

Comments
 (0)
0