mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
update vcs option cascade
- use cfg.commit explicitly (this condition was previously only implicit, because the function isn't called in the first place if cfg.commit is False - allow push even with tag=False
This commit is contained in:
parent
52af1e554e
commit
0a109aad21
1 changed files with 5 additions and 4 deletions
|
|
@ -225,15 +225,16 @@ def commit(
|
||||||
new_version : str,
|
new_version : str,
|
||||||
commit_message: str,
|
commit_message: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
for filepath in filepaths:
|
if cfg.commit:
|
||||||
vcs_api.add(filepath)
|
for filepath in filepaths:
|
||||||
|
vcs_api.add(filepath)
|
||||||
|
|
||||||
vcs_api.commit(commit_message)
|
vcs_api.commit(commit_message)
|
||||||
|
|
||||||
if cfg.commit and cfg.tag:
|
if cfg.commit and cfg.tag:
|
||||||
vcs_api.tag(new_version)
|
vcs_api.tag(new_version)
|
||||||
|
|
||||||
if cfg.commit and cfg.tag and cfg.push:
|
if cfg.commit and cfg.push:
|
||||||
vcs_api.push(new_version)
|
vcs_api.push(new_version)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue