summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39c448c)
raw | patch | inline | side by side (parent: 39c448c)
author | Heiko Voigt <hvoigt@hvoigt.net> | |
Mon, 14 Sep 2009 08:49:01 +0000 (10:49 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 14 Sep 2009 09:27:25 +0000 (02:27 -0700) |
Since OS X 10.6 the variable $SECURITYSESSIONID does not exist anymore,
so lets look for the $TERM_PROGRAM variable as backup.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
so lets look for the $TERM_PROGRAM variable as backup.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
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 4f5c740df5651853e575ba68366152992b0f043d..a578c3a73203fbf1bf4abfb024b1e83c45f2b2ce 100755 (executable)
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
browser_candidates="w3m links lynx"
fi
# SECURITYSESSIONID indicates an OS X GUI login session
- if test -n "$SECURITYSESSIONID"; then
+ if test -n "$SECURITYSESSIONID" \
+ -o "$TERM_PROGRAM" = "Apple_Terminal" ; then
browser_candidates="open $browser_candidates"
fi
# /bin/start indicates MinGW