Skip to content

Commit 6b9ea0b

Browse files
authored
Merge pull request #132 from rgryta/master
Fix missing current version within the context (Issue #131)
2 parents 1deef89 + a5dca4c commit 6b9ea0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bumpversion/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_context(
7575
) -> ChainMap:
7676
"""Return the context for rendering messages and tags."""
7777
ctx = base_context(config.scm_info)
78-
ctx.new_child({"current_version": config.current_version})
78+
ctx = ctx.new_child({"current_version": config.current_version})
7979
if current_version:
8080
ctx = ctx.new_child({f"current_{part}": current_version[part].value for part in current_version})
8181
if new_version:

0 commit comments

Comments
 (0)