From afe9cf931a7cbf972c445189073a9da1ad6130e6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 6 May 2019 22:59:51 +0300 Subject: Allow stubs in bdep-release tag mode --- bdep/release.cxx | 4 ++-- tests/release.testscript | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bdep/release.cxx b/bdep/release.cxx index 71c6372..00c8dca 100644 --- a/bdep/release.cxx +++ b/bdep/release.cxx @@ -680,11 +680,11 @@ namespace bdep standard_version v; try { - // Allow stubs only in the --revision mode. + // Allow stubs only in the --revision and --tag modes. // standard_version::flags f (standard_version::none); - if (o.revision ()) + if (o.revision () || o.tag ()) f |= standard_version::allow_stub; v = standard_version (vv.value, f); diff --git a/tests/release.testscript b/tests/release.testscript index 1ba4cbc..fc10ff7 100644 --- a/tests/release.testscript +++ b/tests/release.testscript @@ -1140,5 +1140,4 @@ log2 = $gp2 log '--pretty=format:"%d %s"' $* --squash 1 2>'error: --squash requires --amend' != 0; $* --revision --amend --squash 0 2>'error: invalid --squash value: 0' != 0; $* --revision --amend --no-commit 2>'error: both --amend and --no-commit specified' != 0 - } -- cgit v1.1