git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk errors out if launched in a subdirectory
@ 2007-01-09 14:30 Peter Baumann
  2007-01-12 17:43 ` Peter Baumann
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Baumann @ 2007-01-09 14:30 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Paul Mackerras

Make gitk use git-rev-parse --git-dir to find the repository.

Signed-off-by: Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-13 16:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-09 14:30 [PATCH] gitk errors out if launched in a subdirectory Peter Baumann
2007-01-12 17:43 ` Peter Baumann
2007-01-12 17:59   ` Junio C Hamano
2007-01-13  3:13   ` Paul Mackerras
2007-01-13 16:10     ` Peter Baumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).