From: Ian Jackson Date: Mon, 9 Jan 2017 15:53:34 +0000 (+0000) Subject: dgit: rpush: suppress changelog tag format check X-Git-Tag: archive/debian/3.0~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=3dadcb8d2d02e528c5bd817f706dd181e6326e39 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 --- diff --git a/dgit b/dgit index cd249b42..e314791f 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);