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,6 +225,7 @@ def commit(
|
|||
new_version : str,
|
||||
commit_message: str,
|
||||
) -> None:
|
||||
if cfg.commit:
|
||||
for filepath in filepaths:
|
||||
vcs_api.add(filepath)
|
||||
|
||||
|
|
@ -233,7 +234,7 @@ def commit(
|
|||
if cfg.commit and cfg.tag:
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue