path: root/dgit
diff options
authorIan Jackson <>2017-01-09 15:53:34 +0000
committerIan Jackson <>2017-01-09 15:53:35 +0000
commit3dadcb8d2d02e528c5bd817f706dd181e6326e39 (patch)
tree0f7a1d68b91e048a8768f2f23e47ae40e31204d6 /dgit
parentf6561dc13583c0b0c242d39d0056368ba2020121 (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 <>
Diffstat (limited to 'dgit')
1 files changed, 6 insertions, 2 deletions
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);