From 3dadcb8d2d02e528c5bd817f706dd181e6326e39 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 9 Jan 2017 15:53:34 +0000 Subject: dgit: rpush: suppress changelog tag format check The changelog might be received (and therefore parsed) before we have been told the suite. So we can't check the tag format because we cannot know the distro yet. Simply suppress this early check. If the tag format is wrong, we will discover this later. Signed-off-by: Ian Jackson --- dgit | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dgit') diff --git a/dgit b/dgit index cd249b4..e314791 100755 --- a/dgit +++ b/dgit @@ -3817,8 +3817,12 @@ sub push_parse_changelog ($) { fail "-p specified $package but changelog specified $clogpackage" unless $package eq $clogpackage; my $cversion = getfield $clogp, 'Version'; - my $tag = debiantag($cversion, access_nomdistro); - runcmd @git, qw(check-ref-format), $tag; + + if (!$we_are_initiator) { + # rpush initiator can't do this because it doesn't have $isuite yet + my $tag = debiantag($cversion, access_nomdistro); + runcmd @git, qw(check-ref-format), $tag; + } my $dscfn = dscfn($cversion); -- cgit v1.2.3