chiark / gitweb /
dgit: rpush: suppress changelog tag format check
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 15:53:34 +0000 (15:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 15:53:35 +0000 (15:53 +0000)
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>
dgit

diff --git a/dgit b/dgit
index cd249b4226ada31ea2ae56a2e593a4c1cf5b715e..e314791f63e82c525af6941459785d25451f2fec 100755 (executable)
--- 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);