more obvious handling of tag and push

This commit is contained in:
Manuel Barkhau 2018-12-22 00:37:27 +01:00
parent d46d8f075a
commit fe4b381b5b
3 changed files with 9 additions and 6 deletions

View file

@ -214,8 +214,10 @@ def _bump(cfg: config.Config, new_version: str, allow_dirty: bool = False) -> No
_vcs.commit(f"bump version to {new_version}")
if cfg.tag:
if cfg.commit and cfg.tag:
_vcs.tag(new_version)
if cfg.commit and cfg.tag and cfg.push:
_vcs.push(new_version)