8000 n · Dollbug/pp-git-cli@3ee2289 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ee2289

Browse files
author
chenxf
committed
n
1 parent ea9644f commit 3ee2289

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

git.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ var currentBranch = execSync("git rev-parse --abbrev-ref HEAD")
66

77
function updateCode({ commit = "n" }) {
88
execSync("git add .");
9-
if (/.*[\u4e00-\u9fa5]+.*$/.test(commit)) {
10-
execSync(`git commit -m ${JSON.stringify(commit)}`);
11-
} else {
9+
// if (/.*[\u4e00-\u9fa5]+.*$/.test(commit)) {
10+
// execSync(`git commit -m ${JSON.stringify(commit)}`);
11+
// } else {
1212
execSync(`git commit -m '${commit}'`);
1313
// execSync(`git commit -m ${JSON.stringify(commit)}`);
14-
}
14+
// }
1515

1616
execSync(`git pull origin ${currentBranch}`);
1717
execSync(`git push origin ${currentBranch}`);

0 commit comments

Comments
 (0)
0