This commit is contained in:
di-sukharev
2023-05-20 21:26:22 +08:00
parent a17462e9a2
commit 3d199eb6d3
2 changed files with 4 additions and 2 deletions

View File

@@ -27276,7 +27276,9 @@ async function improveCommitMessagesWithRebase({
ce(
`Starting interactive rebase: "$ rebase -i ${commitsToImprove[0].sha}".`
);
await import_exec.default.exec("git", ["checkout", source]);
await import_exec.default.exec("git", ["fetch", "--all"]);
await import_exec.default.exec("git", ["pull"]);
await import_exec.default.exec("git", ["rebase", "-i", commitsToImprove[0].sha], {
env: {
GIT_SEQUENCE_EDITOR: `sed -i -e 's/^pick/reword/g' "$1"`,

View File

@@ -142,9 +142,9 @@ async function improveCommitMessagesWithRebase({
);
// fetch all commits inside the process
await exec.exec('git', ['checkout', source]);
await exec.exec('git', ['fetch', '--all']);
// await exec.exec('git', ['checkout', source]);
await exec.exec('git', ['pull']);
await exec.exec('git', ['rebase', '-i', commitsToImprove[0].sha], {
env: {