chiark / gitweb /
dgit-repos-policy-debian; Unset GIT_ALTERNATE_OBJECT_DIRECTORIES
[dgit.git] / infra / dgit-repos-policy-debian
index 48a42d93ea132e96d41353da10240286d2443d54..cff5d06cd33d80107a281dad33135db87e81e99d 100755 (executable)
@@ -355,6 +355,10 @@ END
     my $checkpid = open CHKOUT, "-|" // die $!;
     if (!$checkpid) {
        open STDIN, "<&", $chkinput or die $!;
+       delete $ENV{GIT_ALTERNATE_OBJECT_DIRECTORIES};
+       # ^ recent versions of git set this in the environment of
+       # receive hooks.  This can cause us to see things which
+       # the user is trying to abolish.
        exec @objscatcmd or die $!;
     }