git: browsing paths with spaces when using the start command

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>
This commit is contained in:
Pat Thoyts 2009-05-31 18:15:20 +02:00 committed by Junio C Hamano
parent 28a559c0b5
commit 7b66da2762

View File

@ -161,9 +161,12 @@ case "$browser" in
;; ;;
esac esac
;; ;;
w3m|links|lynx|open|start) w3m|links|lynx|open)
eval "$browser_path" "$@" eval "$browser_path" "$@"
;; ;;
start)
exec "$browser_path" '"web-browse"' "$@"
;;
dillo) dillo)
"$browser_path" "$@" & "$browser_path" "$@" &
;; ;;