Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2009-05-31 20:15:20 +0400
committerJunio C Hamano <gitster@pobox.com>2009-06-01 11:22:01 +0400
commit7b66da2762025fe38ae426bdae5b288a88028e16 (patch)
tree35f8d7ca49ca6a1302556e9faab868662b8e2a3d /git-web--browse.sh
parent28a559c0b5aa5bd0d318e06295719b9e677d5035 (diff)
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>
Diffstat (limited to 'git-web--browse.sh')
-rwxr-xr-xgit-web--browse.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-web--browse.sh b/git-web--browse.sh
index 7ed0faddcd..4f5c740df5 100755
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
@@ -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" "$@" &
;;