chiark / gitweb /
Infra: Make replay prevention file contain tags (by searching for right ref names)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 14:31:53 +0000 (15:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 14:31:53 +0000 (15:31 +0100)
infra/dgit-repos-server

index 4cc96c4..7ab29e2 100755 (executable)
@@ -321,7 +321,7 @@ sub movetogarbage () {
 
     ensuredir "$dgitrepos/_removed-tags";
     open PREVIOUS, ">>", removedtagsfile or die removedtagsfile." $!";
-    git_for_each_ref(debiantag('*'), sub {
+    git_for_each_ref('refs/tags/'.debiantag('*'), sub {
        my ($objid,$objtype,$fullrefname,$reftail) = @_;
        print PREVIOUS "\n$objid $reftail .\n" or die $!;
     }, $real);