diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-12-19 16:01:47 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-12-19 16:01:49 +0000 |
commit | f60ec72817bf5cc38a8ec83abd2e065f0433001c (patch) | |
tree | 22426f54a12361e20e508534077c35f1644f3a78 /infra/dgit-repos-policy-debian | |
parent | 0c130d5e2e33cd8bed0ba0318c62591dabfc3467 (diff) |
dgit-repos-policy-debian; Unset GIT_ALTERNATE_OBJECT_DIRECTORIES
This broke due to recent git setting GIT_ALTERNATE_OBJECT_DIRECTORIES
in the pre-receive-hook.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'infra/dgit-repos-policy-debian')
-rwxr-xr-x | infra/dgit-repos-policy-debian | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index 48a42d9..cff5d06 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -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 $!; } |