aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/release.cxx4
-rw-r--r--tests/release.testscript1
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
-
}