mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
check for vcs only if commit enabled
This commit is contained in:
parent
8d7b09e13d
commit
2f1d6aa2d2
1 changed files with 7 additions and 6 deletions
|
|
@ -215,6 +215,7 @@ def _assert_not_dirty(_vcs: vcs.VCS, filepaths: typ.Set[str], allow_dirty: bool)
|
||||||
def _bump(cfg: config.Config, new_version: str, allow_dirty: bool = False) -> None:
|
def _bump(cfg: config.Config, new_version: str, allow_dirty: bool = False) -> None:
|
||||||
_vcs: typ.Optional[vcs.VCS]
|
_vcs: typ.Optional[vcs.VCS]
|
||||||
|
|
||||||
|
if cfg.commit:
|
||||||
try:
|
try:
|
||||||
_vcs = vcs.get_vcs()
|
_vcs = vcs.get_vcs()
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue