summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de>2007-01-09 15:30:19 +0100
committerLibravatar Paul Mackerras <paulus@samba.org>2007-01-13 16:15:09 +1100
commit5024baa43790bf0ea12905b47c8922e3b256ae61 (patch)
treeef55bcaa089cd92aeb4ba2b56ed1add0572d6a57
parent[PATCH] gitk: add current directory to main window title (diff)
downloadtgif-5024baa43790bf0ea12905b47c8922e3b256ae61.tar.xz
[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 <siprbaum@stud.informatik.uni-erlangen.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
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]
}
}