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) | ||
commit | f6b98e46bdf64454d7c6ab76d617237118799d7b | |
tree | 633b22580dbfff3c8744f30b03276cfb2de55066 | tree | snapshot |
parent | df487baa30924a36ade38ada4f77379236dcce0f | commit | diff |
git-web--browse: Fix check for /bin/start
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>
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>
git-web--browse.sh | diff | blob | history |