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>
Abhijit Menon-Sen committed
Jul 24, 2008 at 18:58 UTC
15430be5a1d17b888b45b608daab7573f24cf9f1
1 file changed
+3
-3
git-gui.sh
+3
-3
@@ -1686,10 +1686,10 @@ proc do_gitk {revs} {
1686
# -- Always start gitk through whatever we were loaded with. This
1687
# lets us bypass using shell process on Windows systems.
1688
#
1689
- set exe [file join [file dirname $::_git] gitk]
1689
+ set exe [_which gitk]
1690
set cmd [list [info nameofexecutable] $exe]
1691
- if {! [file exists $exe]} {
1692
- error_popup [mc "Unable to start gitk:\n\n%s does not exist" $exe]
1691
+ if {$exe eq {}} {
1692
+ error_popup [mc "Couldn't find gitk in PATH"]
1693
} else {
1694
global env
1695