Skip to content

Commit 7b66da2

Browse files
patthoytsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Steffen Prohaska <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 28a559c commit 7b66da2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

git-web--browse.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,12 @@ case "$browser" in
161161
;;
162162
esac
163163
;;
164-
w3m|links|lynx|open|start)
164+
w3m|links|lynx|open)
165165
eval "$browser_path" "$@"
166166
;;
167+
start)
168+
exec "$browser_path" '"web-browse"' "$@"
169+
;;
167170
dillo)
168171
"$browser_path" "$@" &
169172
;;

0 commit comments

Comments
 (0)