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>
Pat Thoyts committed
May 31, 2009 at 18:15 UTC
7b66da2762025fe38ae426bdae5b288a88028e16
1 file changed
+4
-1
git-web--browse.sh
+4
-1
@@ -161,9 +161,12 @@ case "$browser" in
161
;;
162
esac
163
;;
164
- w3m|links|lynx|open|start)
164
+ w3m|links|lynx|open)
165
eval "$browser_path" "$@"
166
;;
167
+ start)
168
+ exec "$browser_path" '"web-browse"' "$@"
169
+ ;;
170
dillo)
171
"$browser_path" "$@" &
172
;;