summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorPeter Baumann <siprbaum@stud.informatik.uni-erlangen.de>2007-01-09 15:30:19 +0100
committerPaul Mackerras <paulus@samba.org>2007-01-13 16:15:09 +1100
commit5024baa43790bf0ea12905b47c8922e3b256ae61 (patch)
treeef55bcaa089cd92aeb4ba2b56ed1add0572d6a57 /gitk
parent6c2833284d84d1128f44dbfd846c81ef93f07a3c (diff)
downloadgit-5024baa43790bf0ea12905b47c8922e3b256ae61.tar.gz
[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>
Diffstat (limited to 'gitk')
-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]
}
}