git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rebase-i-exec: Allow space in SHELL_PATH
@ 2015-11-13  6:03 Fredrik Medley
  2015-11-13  6:25 ` Jeff King
  2015-11-13 16:52 ` Matthieu Moy
  0 siblings, 2 replies; 9+ messages in thread
From: Fredrik Medley @ 2015-11-13  6:03 UTC (permalink / raw)
  To: git; +Cc: Fredrik Medley

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>
---
 git-rebase--interactive.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 30edb17..b938a6d 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
-- 
2.6.2.468.gf34be46.dirty

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-16 16:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-13  6:03 [PATCH] rebase-i-exec: Allow space in SHELL_PATH Fredrik Medley
2015-11-13  6:25 ` Jeff King
2015-11-13 15:25   ` Fredrik Medley
2015-11-13 22:27     ` Jeff King
2015-11-13 22:47       ` Fredrik Medley
2015-11-13 23:09         ` Jeff King
2015-11-16 16:01           ` Johannes Schindelin
2015-11-16 16:34             ` Jeff King
2015-11-13 16:52 ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).