diff options
author | Fredrik Medley <fredrik.medley@gmail.com> | 2015-11-13 09:03:19 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2015-11-14 01:51:39 +0300 |
commit | fe9394ad3e4ec4386b805c63ffc016647054e14d (patch) | |
tree | 91e6602c9299d7309006d39d3319c323cd2c2c3a /git-rebase--interactive.sh | |
parent | af40944bda352190f05d22b7cb8fe88beb17f3a7 (diff) |
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>
Diffstat (limited to 'git-rebase--interactive.sh')
-rw-r--r-- | git-rebase--interactive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |