X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=git-bisect.sh;h=415a8d04ccc4f313eb111a3bbfbf2af2382beebd;hb=7d6cb10b84d9931aacf1914db192cbeaaa88443d;hp=c21e33c8d133af0e9e0ae3edaffd0a5593ff4ac3;hpb=5eee142c89ee4964c9ea4ae1b2fa8344036a7efb;p=thirdparty%2Fgit.git diff --git a/git-bisect.sh b/git-bisect.sh index c21e33c8d1..415a8d04cc 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -288,10 +288,12 @@ bisect_visualize() { if test $# = 0 then - case "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in - '') set git log ;; - set*) set gitk ;; - esac + if test -n "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" && + type gitk >/dev/null 2>&1; then + set gitk + else + set git log + fi else case "$1" in git*|tig) ;;