[PATCH] Use git-rev-parse --git-dir to determine GIT_DIR

Previous thread: [PATCH 2/2] add a flag to disable using of Perls MakeMaker module. by Alex Riesen on Thursday, November 30, 2006 - 12:30 pm. (1 message)

Next thread: Re: [PATCH 0/2] Making "git commit" to mean "git commit -a". by Jakub Narebski on Thursday, November 30, 2006 - 2:47 pm. (4 messages)
To: <git@...>
Cc: Paul Mackerras <paulus@...>
Date: Thursday, November 30, 2006 - 12:45 pm

Signed-off-by: Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de>
---
gitk | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/gitk b/gitk
index ab383b3..60f8212 100755
--- a/gitk
+++ b/gitk
@@ -8,12 +8,7 @@ exec wish "$0" -- "$@"
# either version 2, or (at your option) any later version.

proc gitdir {} {
- global env
- if {[info exists env(GIT_DIR)]} {
- return $env(GIT_DIR)
- } else {
- return ".git"
- }
+ return [exec git rev-parse --git-dir]
}

proc start_rev_list {view} {
--
1.4.3.3

-

Previous thread: [PATCH 2/2] add a flag to disable using of Perls MakeMaker module. by Alex Riesen on Thursday, November 30, 2006 - 12:30 pm. (1 message)

Next thread: Re: [PATCH 0/2] Making "git commit" to mean "git commit -a". by Jakub Narebski on Thursday, November 30, 2006 - 2:47 pm. (4 messages)