[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>
maint
Peter Baumann 2007-01-09 15:30:19 +01:00 committed by Paul Mackerras
parent 6c2833284d
commit 5024baa437
1 changed files with 1 additions and 1 deletions

2
gitk
View File

@ -12,7 +12,7 @@ proc gitdir {} {
if {[info exists env(GIT_DIR)]} {
return $env(GIT_DIR)
} else {
return ".git"
return [exec git rev-parse --git-dir]
}
}