Skip to content

Commit

Permalink
Fix missing current version within the context
Browse files Browse the repository at this point in the history
  • Loading branch information
rgryta authored Jan 25, 2024
1 parent 1deef89 commit a5dca4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bumpversion/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_context(
) -> ChainMap:
"""Return the context for rendering messages and tags."""
ctx = base_context(config.scm_info)
ctx.new_child({"current_version": config.current_version})
ctx = ctx.new_child({"current_version": config.current_version})
if current_version:
ctx = ctx.new_child({f"current_{part}": current_version[part].value for part in current_version})
if new_version:
Expand Down

0 comments on commit a5dca4c

Please sign in to comment.