Skip to content

FIX: Escape asterisk in git describe call on Windows#262

Merged
effigies merged 3 commits intopython-versioneer:masterfrom
DancingQuanta:win_tag_match_fix
Oct 11, 2021
Merged

FIX: Escape asterisk in git describe call on Windows#262
effigies merged 3 commits intopython-versioneer:masterfrom
DancingQuanta:win_tag_match_fix

Conversation

@DancingQuanta
Copy link
Copy Markdown
Contributor

I have created a fix for #122.

This fix makes use of an existing check for win32 to modifies the argument to --match accordingly so that the * is escaped for Windows users.

Copy link
Copy Markdown
Contributor

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks reasonable. I opened #263 to enable tests on Windows. Since it seems you have a Windows box, is there any chance you could go through and fix the tests up?

Comment thread src/git/from_vcs.py Outdated
@DancingQuanta
Copy link
Copy Markdown
Contributor Author

DancingQuanta commented Aug 25, 2021 via email

Comment thread src/git/from_vcs.py Outdated
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
@effigies effigies changed the title A fix for tag prefix match on Windows FIX: Escape asterisk in git describe call on Windows Oct 11, 2021
@effigies effigies merged commit 5db9623 into python-versioneer:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants