summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df487ba)
raw | patch | inline | side by side (parent: df487ba)
author | Todd Zullinger <tmz@pobox.com> | |
Sun, 8 Feb 2009 23:12:43 +0000 (18:12 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 Feb 2009 08:06:36 +0000 (00:06 -0800) |
The previous check in git-web--browse for /bin/start used test -n
/bin/start, which was always true. This lead to "start" being tried
first in the browser list. On systems with upstart installed, "start"
exists and might be in the PATH, but it makes a poor choice for a web
browser. Instead, test that /bin/start exists and is executable.
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
/bin/start, which was always true. This lead to "start" being tried
first in the browser list. On systems with upstart installed, "start"
exists and might be in the PATH, but it makes a poor choice for a web
browser. Instead, test that /bin/start exists and is executable.
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-web--browse.sh | patch | blob | history |
diff --git a/git-web--browse.sh b/git-web--browse.sh
index 78d236b77f6e2b52d89bf7b579762723ede86d15..7ed0faddcd75e024ce18d8b80994d41a9207a7ca 100755 (executable)
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
browser_candidates="open $browser_candidates"
fi
# /bin/start indicates MinGW
- if test -n /bin/start; then
+ if test -x /bin/start; then
browser_candidates="start $browser_candidates"
fi