-
Notifications
You must be signed in to change notification settings - Fork 152
FIX: Escape asterisk for Windows only when tag_prefix is empty 8000 #274
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
Conversation
16360c8
to
cca30bf
Compare
Both use cases? I just stumbled here because I was trying to build a package (castxml) that used versioneer. It contains a copy of versioneer.py in its repo, and I just modified it in-place (the horror). FWIW, I'm building on Windows with MSYS2 (MinGW64). |
@effigies Thanks I can confirm that your fix works for the usecase of having a pattern that starts with a char. In our case |
However for a different repo that uses non prefixed tags this does not work. As in It seems to me that a simpler solution would be to omit the whole match clause if the |
Digging a bit more the issue is not around if the string starts with or contains a * but which shell you are using. In cmd and powershell * should not be escaped but in Git bash it should be regardless of the position |
@jenshnielsen Thanks for the analysis. Can we reliably select which condition we're in with |
Pushed a guess as to what might resolve this. |
e519d9c
to
968d348
Compare
I tried testing out this branch but it looks like something has good wrong with the return code handling. With this branch this call that used to work fine |
If the |
Closing in favor of #283. |
Fixes #273.
@DancingQuanta @mhkline @jenshnielsen Can you test to ensure this covers both uses cases? Unfortunately we haven't gotten CI tests working on Windows, so I can't test, myself.