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 <fredrik.medley@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
Fredrik Medley committed
Nov 13, 2015 at 07:03 UTC
fe9394ad3e4ec4386b805c63ffc016647054e14d
1 file changed
+1
-1
git-rebase--interactive.sh
+1
-1
@@ -610,7 +610,7 @@ do_next () {
610
read -r command rest < "$todo"
611
mark_action_done
612
printf 'Executing: %s\n' "$rest"
613
- ${SHELL:-@SHELL_PATH@} -c "$rest" # Actual execution
613
+ "${SHELL:-@SHELL_PATH@}" -c "$rest" # Actual execution
614
status=$?
615
# Run in subshell because require_clean_work_tree can die.
616
dirty=f