Skip to content

Commit 15430be

Browse files
amenonsenspearce
authored andcommitted
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>
1 parent a01fe99 commit 15430be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-gui.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,10 +1686,10 @@ proc do_gitk {revs} {
16861686
# -- Always start gitk through whatever we were loaded with. This
16871687
# lets us bypass using shell process on Windows systems.
16881688
#
1689-
set exe [file join [file dirname $::_git] gitk]
1689+
set exe [_which gitk]
16901690
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"]
16931693
} else {
16941694
global env
16951695

0 commit comments

Comments
 (0)