summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-12-01 17:19:37 -0500
committerLibravatar Jeff King <peff@peff.net>2015-12-01 17:19:37 -0500
commit45e330f512b5a32f2e3aae800e57b07fd75f607e (patch)
tree30c4065dbc38151c433f49b39bf15cbb5a0b9804
parentMerge branch 'ar/doc-env-variable-format' into maint (diff)
parentrebase-i-exec: Allow space in SHELL_PATH (diff)
downloadtgif-45e330f512b5a32f2e3aae800e57b07fd75f607e.tar.xz
Merge branch 'fm/shell-path-whitespace' into maint
Portability fix for Windows, which may rewrite $SHELL variable using non-POSIX paths. * fm/shell-path-whitespace: rebase-i-exec: Allow space in SHELL_PATH
-rw-r--r--git-rebase--interactive.sh2
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