From: Peter Baumann Date: Tue, 9 Jan 2007 14:30:19 +0000 (+0100) Subject: [PATCH] Make gitk work when launched in a subdirectory X-Git-Tag: v1.5.0-rc2~84^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5024baa43790bf0ea12905b47c8922e3b256ae61;p=git.git [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 Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 33bac1f3f..031c829f2 100755 --- a/gitk +++ b/gitk @@ -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] } }