Signed-off-by: Jörg Sommer <joerg@xxxxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html