mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-16 16:23:51 +01:00
check for tag if tag-num specified
This commit is contained in:
parent
6d727ad1e7
commit
a2a302bce2
3 changed files with 21 additions and 1 deletions
|
|
@ -754,6 +754,11 @@ def incr(
|
|||
else:
|
||||
cur_vinfo = old_vinfo._replace(**cur_cinfo._asdict())
|
||||
|
||||
has_tag_part = cur_vinfo.tag != "final"
|
||||
if tag_num and not tag and not has_tag_part:
|
||||
logger.error("Invalid arguments, non-final --tag=<tag> is needed to use --tag-num.")
|
||||
return None
|
||||
|
||||
cur_vinfo = _incr_numeric(
|
||||
raw_pattern,
|
||||
old_vinfo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue