Skip to content

Commit

Permalink
git: browsing paths with spaces when using the start command
Browse files Browse the repository at this point in the history
msysGit issue 258 tracks a problem opening a browser onto file
paths that contain spaces or parentheses when calling the
web--browse script. This patch modifies how the start command is
called to solve this.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
patthoyts authored and gitster committed Jun 1, 2009
1 parent 28a559c commit 7b66da2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-web--browse.sh
Expand Up @@ -161,9 +161,12 @@ case "$browser" in
;;
esac
;;
w3m|links|lynx|open|start)
w3m|links|lynx|open)
eval "$browser_path" "$@"
;;
start)
exec "$browser_path" '"web-browse"' "$@"
;;
dillo)
"$browser_path" "$@" &
;;
Expand Down

0 comments on commit 7b66da2

Please sign in to comment.