X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=infra%2Fdgit-repos-policy-debian;h=cff5d06cd33d80107a281dad33135db87e81e99d;hp=8f1164b1f7a5705bda45bc5cc9f4417b42271f18;hb=f773b1ed2796196e0fa801886fce493544c38fe0;hpb=02bc0d2ca13bda7484c72b30cd20a7e36097da34 diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index 8f1164b1..cff5d06c 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -133,7 +133,7 @@ sub vsn_in_our_history ($) { my @tagrefs = map { "refs/tags/".$_ } debiantags $vsn, $distro; printdebug " checking history vsn=$vsn tagrefs=@tagrefs\n"; - open F, "-|", qw(git-for-each-ref), @tagrefs; + open F, "-|", qw(git for-each-ref), @tagrefs; $_ = ; close F; return 1 if defined && m/\S/; @@ -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 $!; }