Skip to content

Commit

Permalink
git-gui: Look for gitk in $PATH, not $LIBEXEC/git-core
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Abhijit Menon-Sen authored and Shawn O. Pearce committed Jul 25, 2008
1 parent a01fe99 commit 15430be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15430be

Please sign in to comment.