mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-13 06:50:08 +01:00
fix tag vcs parsing and output
This commit is contained in:
parent
658ef57478
commit
d35f5117fc
2 changed files with 9 additions and 3 deletions
|
|
@ -115,7 +115,9 @@ class VCS:
|
|||
"""List vcs tags on all branches."""
|
||||
ls_tag_lines = self('ls_tags').splitlines()
|
||||
log.debug(f"ls_tags output {ls_tag_lines}")
|
||||
return [line.strip() for line in ls_tag_lines if line.strip().startswith("v")]
|
||||
return [
|
||||
line.strip().split(" ", 1)[0] for line in ls_tag_lines if line.strip().startswith("v")
|
||||
]
|
||||
|
||||
def add(self, path: str) -> None:
|
||||
"""Add updates to be included in next commit."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue