mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
fix: tags don't have to begin with 'v'
This commit is contained in:
parent
687af6b2fb
commit
7da3532037
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ VCS_SUBCOMMANDS_BY_NAME = {
|
||||||
'git': {
|
'git': {
|
||||||
'is_usable' : "git rev-parse --git-dir",
|
'is_usable' : "git rev-parse --git-dir",
|
||||||
'fetch' : "git fetch",
|
'fetch' : "git fetch",
|
||||||
'ls_tags' : "git tag --list v*",
|
'ls_tags' : "git tag --list",
|
||||||
'status' : "git status --porcelain",
|
'status' : "git status --porcelain",
|
||||||
'add_path' : "git add --update {path}",
|
'add_path' : "git add --update {path}",
|
||||||
'commit' : "git commit --file {path}",
|
'commit' : "git commit --file {path}",
|
||||||
|
|
@ -123,7 +123,7 @@ class VCS:
|
||||||
ls_tag_lines = self('ls_tags').splitlines()
|
ls_tag_lines = self('ls_tags').splitlines()
|
||||||
log.debug(f"ls_tags output {ls_tag_lines}")
|
log.debug(f"ls_tags output {ls_tag_lines}")
|
||||||
return [
|
return [
|
||||||
line.strip().split(" ", 1)[0] for line in ls_tag_lines if line.strip().startswith("v")
|
line.strip().split(" ", 1)[0] for line in ls_tag_lines
|
||||||
]
|
]
|
||||||
|
|
||||||
def add(self, path: str) -> None:
|
def add(self, path: str) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue