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/5024baa43790bf0ea12905b47c8922e3b256ae61?ds=inline;hp=--cc [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 --- 5024baa43790bf0ea12905b47c8922e3b256ae61 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] } }