summaryrefslogtreecommitdiff
path: root/git-web--browse.sh
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2008-09-24 21:52:39 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-09-24 22:49:21 (GMT)
commit3b9b1163c0a316c50715c6bd7c731b4703f89f55 (patch)
treeddb8c600c91a73f1826fcaac38bd71c82b0ccc18 /git-web--browse.sh
parente2b850b2da711c5cca563f221062bf22c57373bf (diff)
downloadgit-3b9b1163c0a316c50715c6bd7c731b4703f89f55.zip
git-3b9b1163c0a316c50715c6bd7c731b4703f89f55.tar.gz
git-3b9b1163c0a316c50715c6bd7c731b4703f89f55.tar.bz2
git-web--browse: Support for using /bin/start on MinGW
In the future, I think we should also default to xdg-open on Linux instead of having a KDE-specific hack. This patch has been sponsored by Novartis. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-web--browse.sh')
-rwxr-xr-xgit-web--browse.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/git-web--browse.sh b/git-web--browse.sh
index 384148a..78d236b 100755
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
@@ -31,7 +31,7 @@ valid_custom_tool()
valid_tool() {
case "$1" in
- firefox | iceweasel | konqueror | w3m | links | lynx | dillo | open)
+ firefox | iceweasel | konqueror | w3m | links | lynx | dillo | open | start)
;; # happy
*)
valid_custom_tool "$1" || return 1
@@ -114,6 +114,10 @@ if test -z "$browser" ; then
if test -n "$SECURITYSESSIONID"; then
browser_candidates="open $browser_candidates"
fi
+ # /bin/start indicates MinGW
+ if test -n /bin/start; then
+ browser_candidates="start $browser_candidates"
+ fi
for i in $browser_candidates; do
init_browser_path $i
@@ -157,7 +161,7 @@ case "$browser" in
;;
esac
;;
- w3m|links|lynx|open)
+ w3m|links|lynx|open|start)
eval "$browser_path" "$@"
;;
dillo)