@matheusbsbs / matheus-bagliano / commits / 5024baa437
Fork 0

[PATCH] Make gitk work when launched in a subdirectory

Make gitk use git-rev-parse --git-dir to find the repository. Signed-off-by: Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de> Signed-off-by: Paul Mackerras <paulus@samba.org>

Peter Baumann committed Jan 9, 2007 at 15:30 UTC 5024baa43790bf0ea12905b47c8922e3b256ae61
1 file changed +1 -1
gitk
+1 -1
@@ -12,7 +12,7 @@ proc gitdir {} {
12 if {[info exists env(GIT_DIR)]} {
13 return $env(GIT_DIR)
14 } else {
15 - return ".git"
15 + return [exec git rev-parse --git-dir]
16 }
17 }
18