diff options
author | Abhijit Menon-Sen <ams@toroid.org> | 2008-07-24 18:58:53 +0530 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-07-25 14:58:31 -0700 |
commit | 15430be5a1d17b888b45b608daab7573f24cf9f1 (patch) | |
tree | 38fcbde683f64263a2ff5f0839d222b6209bd5ec /git-gui.sh | |
parent | Add a menu item to invoke full copy detection in blame. (diff) | |
download | tgif-15430be5a1d17b888b45b608daab7573f24cf9f1.tar.xz |
git-gui: Look for gitk in $PATH, not $LIBEXEC/git-core
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh index 83e2645714..7c27a43a5d 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1686,10 +1686,10 @@ proc do_gitk {revs} { # -- Always start gitk through whatever we were loaded with. This # lets us bypass using shell process on Windows systems. # - set exe [file join [file dirname $::_git] gitk] + set exe [_which gitk] set cmd [list [info nameofexecutable] $exe] - if {! [file exists $exe]} { - error_popup [mc "Unable to start gitk:\n\n%s does not exist" $exe] + if {$exe eq {}} { + error_popup [mc "Couldn't find gitk in PATH"] } else { global env |