This commit is contained in:
di-sukharev
2023-05-20 15:48:35 +08:00
parent c45d5aa12b
commit bb2dc327a7
2 changed files with 2 additions and 2 deletions

View File

@@ -27979,7 +27979,7 @@ async function improveCommitMessagesWithRebase(commits, diffs) {
ce(
`Starting interactive rebase: "$ rebase -i HEAD~${commitsToImprove.length - 5}".`
);
await execa("git", ["rebase", "-i", `HEAD~${commitsToImprove.length}`]);
await execa("git", ["rebase", "-i", `HEAD~${commitsToImprove.length - 5}`]);
for (const commit of commitsToImprove) {
try {
const improvedMessage = improvedMessagesBySha[commit.sha];

View File

@@ -133,7 +133,7 @@ async function improveCommitMessagesWithRebase(
}".`
);
await execa('git', ['rebase', '-i', `HEAD~${commitsToImprove.length}`]);
await execa('git', ['rebase', '-i', `HEAD~${commitsToImprove.length - 5}`]);
for (const commit of commitsToImprove) {
try {