mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-16 16:23:51 +01:00
Fix incorrect version comparison when updating from vcs tag
This commit is contained in:
parent
defbf89fa8
commit
1fb7e84e91
2 changed files with 13 additions and 2 deletions
|
|
@ -665,7 +665,7 @@ def _update_cfg_from_vcs(cfg: config.Config, fetch: bool) -> config.Config:
|
|||
return cfg
|
||||
else:
|
||||
latest_version_pep440 = version.to_pep440(latest_version_tag)
|
||||
if latest_version_tag <= cfg.current_version:
|
||||
if version.parse_version(latest_version_tag) <= version.parse_version(cfg.current_version):
|
||||
# current_version already newer/up-to-date
|
||||
return cfg
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue