This commit is contained in:
di-sukharev
2023-05-20 17:21:21 +08:00
parent b1e099f4bc
commit bd65b100a5
2 changed files with 4 additions and 2 deletions

View File

@@ -27982,7 +27982,8 @@ async function improveCommitMessagesWithRebase({
console.log({ improvedMessagesBySha });
ce("Done.");
ce(`Starting interactive rebase: "$ rebase -i ${base}".`);
await execa("git", ["rebase", "-i", base]);
await execa("git", ["fetch", `--all`]);
await execa("git", ["rebase", "-i", `origin/${base}`]);
for (const commit of commitsToImprove) {
try {
const improvedMessage = improvedMessagesBySha[commit.sha];

View File

@@ -136,7 +136,8 @@ async function improveCommitMessagesWithRebase({
outro(`Starting interactive rebase: "$ rebase -i ${base}".`);
await execa('git', ['rebase', '-i', base]);
await execa('git', ['fetch', `--all`]);
await execa('git', ['rebase', '-i', `origin/${base}`]);
for (const commit of commitsToImprove) {
try {