From 5024baa43790bf0ea12905b47c8922e3b256ae61 Mon Sep 17 00:00:00 2001 From: Peter Baumann Date: Tue, 9 Jan 2007 15:30:19 +0100 Subject: [PATCH] [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 --- gitk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] } } -- 2.30.2