From: Peter Baumann Date: Tue, 09 Jan 2007 14:30:19 GMT Subject: [PATCH] gitk errors out if launched in a subdirectory Message-ID: <20070109143019.GA24688@xp.machine.xx> Make gitk use git-rev-parse --git-dir to find the repository. Signed-off-by: Peter Baumann --- gitk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gitk b/gitk index 3dabc69..ec4f1bd 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] } } -- 1.4.4.2