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-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=5024baa;p=gitk [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 33bac1f..031c829 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] } }