Skip to content

Commit 58056ed

Browse files
fix(ng-dev): fix interactive rebase env
The env variable is only needed with autosquash. Otherwise the editor will not be presented.
1 parent 77fb8b4 commit 58056ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ng-dev/pr/rebase/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ export async function rebasePr(prNumber: number, interactive: boolean = false):
104104
let env = undefined;
105105

106106
if (squashFixups || interactive) {
107-
env = {...process.env, GIT_SEQUENCE_EDITOR: 'true'};
108107
flags.push('--interactive');
109108
}
110109
if (squashFixups) {
110+
env = {...process.env, GIT_SEQUENCE_EDITOR: 'true'};
111111
flags.push('--autosquash');
112112
}
113113

0 commit comments

Comments
 (0)