summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15430be)
raw | patch | inline | side by side (parent: 15430be)
author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 25 Jul 2008 22:08:33 +0000 (15:08 -0700) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 25 Jul 2008 22:08:33 +0000 (15:08 -0700) |
In Git 1.6 and later gitk is in $prefix/bin while git-gui and all
of the other commands are in $gitexecdir, which is typically not
the same as $prefix/bin. So we cannot launch $gitexecdir/gitk and
expect it to actually start gitk properly.
By allowing git-gui to locate the script via $PATH and then using
exactly that path when we source it during the application start
we can correctly run gitk on any Git 1.5 or later.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
of the other commands are in $gitexecdir, which is typically not
the same as $prefix/bin. So we cannot launch $gitexecdir/gitk and
expect it to actually start gitk properly.
By allowing git-gui to locate the script via $PATH and then using
exactly that path when we source it during the application start
we can correctly run gitk on any Git 1.5 or later.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
macosx/AppMain.tcl | patch | blob | history |
diff --git a/macosx/AppMain.tcl b/macosx/AppMain.tcl
index 41ca08e2b7929c59806b3b07a18dbae0ebfae933..ddbe6334a258dae46b6c333d53590f3b920a9cab 100644 (file)
--- a/macosx/AppMain.tcl
+++ b/macosx/AppMain.tcl
}
if {[file tail [lindex $argv 0]] eq {gitk}} {
- set argv0 [file join $gitexecdir gitk]
+ set argv0 [lindex $argv 0]
set AppMain_source $argv0
} else {
set argv0 [file join $gitexecdir [file tail [lindex $argv 0]]]