git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Pay attention to GIT_DIR when searching the git directory
@ 2008-05-05  0:09 Jörg Sommer
  2008-05-05 11:36 ` Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: Jörg Sommer @ 2008-05-05  0:09 UTC (permalink / raw)
  To: git; +Cc: jjengla, Jörg Sommer


Signed-off-by: Jörg Sommer <joerg@alea.gnuu.de>
---
 contrib/hooks/setgitperms.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/hooks/setgitperms.perl b/contrib/hooks/setgitperms.perl
index dab7c8e..0b1bcf2 100644
--- a/contrib/hooks/setgitperms.perl
+++ b/contrib/hooks/setgitperms.perl
@@ -51,7 +51,7 @@ if ((@ARGV < 0) || !GetOptions(
 die $usage unless ($read_mode xor $write_mode);
 
 my $topdir = `git-rev-parse --show-cdup` or die "\n"; chomp $topdir;
-my $gitdir = $topdir . '.git';
+my $gitdir = $ENV{GIT_DIR} || $topdir . '.git';
 my $gitmeta = $topdir . '.gitmeta';
 
 if ($write_mode) {
-- 
1.5.5.1

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

end of thread, other threads:[~2008-05-05 16:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05  0:09 [PATCH] Pay attention to GIT_DIR when searching the git directory Jörg Sommer
2008-05-05 11:36 ` Johannes Schindelin
2008-05-05 12:53   ` Jörg Sommer
2008-05-05 13:39     ` Johannes Schindelin
2008-05-05 14:10     ` Jakub Narebski
2008-05-05 15:30       ` Jörg Sommer
2008-05-05 16:33         ` Johannes Schindelin
2008-05-05 16:48         ` Jakub Narebski

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).