Index: git/gitrepo/gitolite/local/VREF/APPROVERS-CHECK =================================================================== --- git/gitrepo/gitolite/local/VREF/APPROVERS-CHECK (revision 16613) +++ git/gitrepo/gitolite/local/VREF/APPROVERS-CHECK (working copy) @@ -48,6 +48,10 @@ } my ($ref, $old, $new) = @ARGV; + +# Ref deletion: nothing new to check. +exit 0 if $new =~ /^0+$/; + my $repo = $ARGV[7]; my $approvers_conf = "$conf_base/$repo/approvers"; Index: git/gitrepo/gitolite/local/VREF/COMMITTER-CHECK =================================================================== --- git/gitrepo/gitolite/local/VREF/COMMITTER-CHECK (revision 16613) +++ git/gitrepo/gitolite/local/VREF/COMMITTER-CHECK (working copy) @@ -19,6 +19,9 @@ my ($ref, $old, $new) = @ARGV; +# Ref deletion: nothing new to check. +exit 0 if $new =~ /^0+$/; + #if ($ref =~ "^refs/heads/vendor/") { if ($ref =~ "^refs/heads/vendor/openzfs/") { # vendor branch is an exception Index: git/gitrepo/gitolite/local/hooks/repo-specific/author-checker =================================================================== --- git/gitrepo/gitolite/local/hooks/repo-specific/author-checker (revision 16613) +++ git/gitrepo/gitolite/local/hooks/repo-specific/author-checker (working copy) @@ -24,6 +24,8 @@ foreach my $line () { my ($old, $new, $ref) = split / /, $line; + # Ref deletion: nothing new to check. + next if $new =~ /^0+$/; for my $rev (`git log --format="%an\t%ae\t%cn\t%ce\t%H\t%s" $new --not --all`) { chomp($rev); my ($author_name, $author_email, $committer_name, $committer_email, $hash, $subject) = split /\t/, $rev; Index: git/gitrepo/gitolite/local/hooks/repo-specific/doc-hook =================================================================== --- git/gitrepo/gitolite/local/hooks/repo-specific/doc-hook (revision 16613) +++ git/gitrepo/gitolite/local/hooks/repo-specific/doc-hook (working copy) @@ -348,6 +348,9 @@ chomp; my ($old, $new, $ref) = split / /; + # Ref deletion: nothing new to check. + next if $new =~ /^0+$/; + for my $rev ($git->command('log', '--format=%H', $new, '--not', '--all')) { # Get the raw body of the commit Index: git/gitrepo/gitolite/local/hooks/repo-specific/ports-hook =================================================================== --- git/gitrepo/gitolite/local/hooks/repo-specific/ports-hook (revision 16613) +++ git/gitrepo/gitolite/local/hooks/repo-specific/ports-hook (working copy) @@ -571,6 +571,9 @@ unsupported_quarterly($ref); + # Ref deletion: nothing new to check. + next if $new =~ /^0+$/; + for my $rev ($git->command('log', '--format=%H', $new, '--not', '--all')) { # Get the raw body of the commit Index: git/gitrepo/gitolite/local/hooks/repo-specific/src-hook =================================================================== --- git/gitrepo/gitolite/local/hooks/repo-specific/src-hook (revision 16613) +++ git/gitrepo/gitolite/local/hooks/repo-specific/src-hook (working copy) @@ -300,6 +300,9 @@ chomp; my ($old, $new, $ref) = split / /; + # Ref deletion: nothing new to check. + next if $new =~ /^0+$/; + for my $rev ($git->command('log', '--format=%H', $new, '--not', '--all')) { # Get the raw body of the commit