[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>
This commit is contained in:
Peter Baumann 2007-01-09 15:30:19 +01:00 committed by Paul Mackerras
parent 6c2833284d
commit 5024baa437

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]
}
}