Skip to content

Commit a5dca4c

Browse files
authored
Fix missing current version within the context
1 parent 1deef89 commit a5dca4c

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)