From eb43be543543dda00d48455b40f347765ab9fbfe Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 24 Jul 2016 19:52:21 +0100 Subject: [PATCH] Tag change: dgit: Fetch both old ane new format tags We are going to want to know about all of these. Signed-off-by: Ian Jackson --- dgit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dgit b/dgit index 45eef630..ba3a2e48 100755 --- a/dgit +++ b/dgit @@ -1560,14 +1560,14 @@ sub git_fetch_us () { runcmd_ordryrun_local @git, qw(fetch -p -n -q), access_giturl(), @specs; my %here; - my $tagpat = debiantag('*',access_basedistro); + my @tagpats = debiantags('*',access_basedistro); - git_for_each_ref("refs/tags/".$tagpat, sub { + git_for_each_ref([map { "refs/tags/$_" } @tagpats], sub { my ($objid,$objtype,$fullrefname,$reftail) = @_; printdebug "currently $fullrefname=$objid\n"; $here{$fullrefname} = $objid; }); - git_for_each_ref(lrfetchrefs."/tags/".$tagpat, sub { + git_for_each_ref([map { lrfetchrefs."/tags/".$_ } @tagpats], sub { my ($objid,$objtype,$fullrefname,$reftail) = @_; my $lref = "refs".substr($fullrefname, length lrfetchrefs); printdebug "offered $lref=$objid\n"; -- 2.30.2