Skip to content

Fix bug in TagReference.create that would duplicate the message - #1460

Merged
Byron merged 2 commits into
gitpython-developers:mainfrom
ruuda:fix-tag-message
Jun 25, 2022
Merged

Fix bug in TagReference.create that would duplicate the message#1460
Byron merged 2 commits into
gitpython-developers:mainfrom
ruuda:fix-tag-message

Conversation

@ruuda

Copy link
Copy Markdown
Contributor

Previously if you passed the message kwarg, that would cause a --message argument to git tag, but then the code also added a -m, which caused the message to appear in the tag twice. Fix that by deleting message from the kwargs if we set -m.

ruuda added 2 commits June 24, 2022 18:31
If you pass the "message" kwarg, it also translates it to an -m command
line flag, and with both -m and --message, the message appears twice.
I will fix this in the next commit.
When passing the "message" kwarg, this would add a -m command-line flag
without removing --message, and the message would be duplicated. Avoid
that by deleting "message" from the command line.
@ByronByron added this to the v3.1.28 - Bugfixes milestone Jun 25, 2022
@Byron

Copy link
Copy Markdown
Member

Very nicely done, thanks a lot for this contribution!

@Byron
Byron merged commit 275c37f into gitpython-developers:mainJun 25, 2022
@ruuda
ruuda deleted the fix-tag-message branch June 25, 2022 08:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ruuda@Byron