Skip to content

Commit f9942bb

Browse files
morotendscho
authored andcommitted
rebase-i-exec: Allow space in SHELL_PATH
On Windows, when Git is installed under "C:\Program Files\Git", SHELL_PATH will include a space. Fix "git rebase --interactive --exec" so that it works with spaces in SHELL_PATH. Signed-off-by: Fredrik Medley <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 345aa5d commit f9942bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-rebase--interactive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ do_next () {
610610
read -r command rest < "$todo"
611611
mark_action_done
612612
printf 'Executing: %s\n' "$rest"
613-
${SHELL:-@SHELL_PATH@} -c "$rest" # Actual execution
613+
"${SHELL:-@SHELL_PATH@}" -c "$rest" # Actual execution
614614
status=$?
615615
# Run in subshell because require_clean_work_tree can die.
616616
dirty=f

0 commit comments

Comments
 (0)