Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2022

Conversation

ruuda
Copy link
Contributor

@ruuda ruuda commented Jun 24, 2022

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.
@Byron Byron added this to the v3.1.28 - Bugfixes milestone Jun 25, 2022
@Byron
Copy link
Member

Byron commented Jun 25, 2022

Very nicely done, thanks a lot for this contribution!

@Byron Byron merged commit 275c37f into gitpython-developers:main Jun 25, 2022
@ruuda ruuda deleted the fix-tag-message branch June 25, 2022 08:29
Sign up for free to 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