From: Fredrik Medley Date: Fri, 13 Nov 2015 06:03:19 +0000 (+0100) Subject: rebase-i-exec: Allow space in SHELL_PATH X-Git-Tag: v2.6.4~18^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fe9394ad3e4ec4386b805c63ffc016647054e14d?ds=inline;hp=--cc 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 Signed-off-by: Jeff King --- fe9394ad3e4ec4386b805c63ffc016647054e14d diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 30edb17925..b938a6d4aa 100644 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -610,7 +610,7 @@ do_next () { read -r command rest < "$todo" mark_action_done printf 'Executing: %s\n' "$rest" - ${SHELL:-@SHELL_PATH@} -c "$rest" # Actual execution + "${SHELL:-@SHELL_PATH@}" -c "$rest" # Actual execution status=$? # Run in subshell because require_clean_work_tree can die. dirty=f