Skip to content

Commit

Permalink
Drop the non-prefixed parts
Browse files Browse the repository at this point in the history
In search/replace, always use current_[part] or new_[part].
See discussion at c4urself#41 (comment)

Does not affect pytest tests.
  • Loading branch information
florisla committed Dec 18, 2018
1 parent 61c2304 commit e28819d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bumpversion/__init__.py
Expand Up @@ -952,7 +952,6 @@ def main(original_args=None):
vcs_context.update(prefixed_environ())
vcs_context.update({'current_' + part: current_version[part].value for part in current_version})
vcs_context.update({'new_' + part: new_version[part].value for part in new_version})
vcs_context.update({part: new_version[part].value for part in new_version})

commit_message = args.message.format(**vcs_context)

Expand Down

0 comments on commit e28819d

Please sign in to comment.