diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-09 15:53:34 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-09 15:53:35 +0000 |
commit | 3dadcb8d2d02e528c5bd817f706dd181e6326e39 (patch) | |
tree | 0f7a1d68b91e048a8768f2f23e47ae40e31204d6 /dgit | |
parent | f6561dc13583c0b0c242d39d0056368ba2020121 (diff) |
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |