This commit is contained in:
di-sukharev
2023-05-21 00:07:23 +08:00
parent 07f07e5e18
commit b4ecce224b
2 changed files with 2 additions and 2 deletions

View File

@@ -27288,7 +27288,7 @@ async function improveCommitMessagesWithRebase({
(0, import_fs2.writeFileSync)(`./commit-${i2}.txt`, improvedMessagesBySha[commit.sha]);
});
await execPromise(
`echo 0 > count.txt && git rebase -i ${commitsToImprove[0].sha}^ --exec "git commit --amend -F commit-$(cat count.txt).txt && echo $(( $(cat count.txt) + 1 )) > count.txt"`,
`echo 0 > count.txt && git rebase ${commitsToImprove[0].sha}^ --exec "git commit --amend -F commit-$(cat count.txt).txt && echo $(( $(cat count.txt) + 1 )) > count.txt"`,
{
env: {
GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',

View File

@@ -179,7 +179,7 @@ async function improveCommitMessagesWithRebase({
// );
await execPromise(
`echo 0 > count.txt && git rebase -i ${commitsToImprove[0].sha}^ --exec "git commit --amend -F commit-$(cat count.txt).txt && echo $(( $(cat count.txt) + 1 )) > count.txt"`,
`echo 0 > count.txt && git rebase ${commitsToImprove[0].sha}^ --exec "git commit --amend -F commit-$(cat count.txt).txt && echo $(( $(cat count.txt) + 1 )) > count.txt"`,
{
env: {
GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',