summaryrefslogtreecommitdiff
path: root/builtin/branch.c
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2013-03-25 10:13:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-29 22:24:31 (GMT)
commitbe537e43ca8c6e38a3cf7024b28d6daf54611132 (patch)
treed465ab538aa5e20b3a4d69c296cbf94d1e67b113 /builtin/branch.c
parent7b592fadf1e23b10b913e0771b9f711770597266 (diff)
downloadgit-be537e43ca8c6e38a3cf7024b28d6daf54611132.zip
git-be537e43ca8c6e38a3cf7024b28d6daf54611132.tar.gz
git-be537e43ca8c6e38a3cf7024b28d6daf54611132.tar.bz2
git-web--browse: recognize any TERM_PROGRAM as a GUI terminal on OS X
It turns out that the presence of SECURITYSESSIONID is not sufficient for detecting the presence of a GUI under Mac OS X. SECURITYSESSIONID appears to only be set when the user has Screen Sharing enabled. Disabling Screen Sharing and relaunching the shell showed that the variable was missing, at least under Mac OS X 10.6.8. On the other hand, TERM_PROGRAM seems to be set for any terminals on OS X, so just check it is set to something, instead of hardcoding "Apple_Terminal" and missing other terminals such as iTerm.app. Signed-off-by: John Szakmeister <john@szakmeister.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/branch.c')
0 files changed, 0 insertions, 0 deletions