Skip to content

Commit 537437d

Browse files
versioneer 0.20 regression fixed
Versioneer 0.20 added escape character to the match option of git describe ``` (base) C:\Users\opavlyk\devel\dpctl>git describe --tags --dirty --always --long --match "\*" 3bd37749 (base) C:\Users\opavlyk\devel\dpctl>git describe --tags --dirty --always --long --match "\\*" 3bd37749 (base) C:\Users\opavlyk\devel\dpctl>git describe --tags --dirty --always --long --match "*" 0.12.0dev3-33-g3bd37749 ```
1 parent 335fb23 commit 537437d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versioneer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
11651165
TAG_PREFIX_REGEX = "*"
11661166
if sys.platform == "win32":
11671167
GITS = ["git.cmd", "git.exe"]
1168-
TAG_PREFIX_REGEX = r"\*"
1168+
TAG_PREFIX_REGEX = r"*" # r"\*" - using escape on windows breaks tag extraction
11691169

11701170
_, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root,
11711171
hide_stderr=True)

0 commit comments

Comments
 (0)