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.lorimer.id.au/gitweb.git/diff_plain/5024baa?ds=inline;hp=6c2833284d84d1128f44dbfd846c81ef93f07a3c [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 33bac1f3f6..031c829f26 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] } }