diff --git a/commitizen/commands/bump.py b/commitizen/commands/bump.py index 5437501887..dbb2c31b3b 100644 --- a/commitizen/commands/bump.py +++ b/commitizen/commands/bump.py @@ -238,10 +238,10 @@ def __call__(self): # noqa: C901 if last_final is not None: commits = git.get_commits(last_final) increment = self.find_increment(commits) - semver = last_final.increment_base( + base = last_final.increment_base( increment=increment, force_bump=True ) - if semver != current_version.base_version: + if base != current_version.base_version: force_bump = True elif prerelease: increment = None diff --git a/commitizen/version_schemes.py b/commitizen/version_schemes.py index 2605237081..c47c5fe696 100644 --- a/commitizen/version_schemes.py +++ b/commitizen/version_schemes.py @@ -221,8 +221,8 @@ def bump( release = list(self.release) if len(release) < 3: release += [0] * (3 - len(release)) - current_semver = ".".join(str(part) for part in release) - if base == current_semver: + current_base = ".".join(str(part) for part in release) + if base == current_base: pre_version = self.generate_prerelease( prerelease, offset=prerelease_offset )