Skip to content

Commit

Permalink
[PATCH] Make gitk work when launched in a subdirectory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Baumann authored and Paul Mackerras committed Jan 13, 2007
1 parent 6c28332 commit 5024baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}

Expand Down

0 comments on commit 5024baa

Please sign in to comment.