Skip to content

Commit 23fdc10

Browse files
committed
Preserve environment in rebase start command
I ran into a very odd situation where I couldn't rebase because Git couldn't find my .gitconfig file and wouldn't make any commits. I'm still not sure exactly what the problem was, but apparently the Git child process lost some environment variable that was important. Preserving the environment in the `git rebase` invocation fixes the problem.
1 parent 78ad797 commit 23fdc10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/rebase-upstream-commits.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ try running this tool's "rebasehelp" command.
167167
// We want this to show up in the same TTY that this tool was launched in.
168168
stdio: 'inherit',
169169
env: {
170+
...process.env,
170171
GIT_SEQUENCE_EDITOR: gitSequenceEditorCmd,
171172
PATH: process.env['PATH']
172173
}

0 commit comments

Comments
 (0)