Skip to content

Commit 5024baa

Browse files
Peter Baumannpaulusmack
authored andcommitted
[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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 6c28332 commit 5024baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ proc gitdir {} {
1212
if {[info exists env(GIT_DIR)]} {
1313
return $env(GIT_DIR)
1414
} else {
15-
return ".git"
15+
return [exec git rev-parse --git-dir]
1616
}
1717
}
1818

0 commit comments

Comments
 (0)