forked from camas/setuptools-git-ver
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
On Windows the ccount is incorrectly calculated to be the number of commits from the beginning of the repository and to HEAD. This is due to the ^ character being a escape character in the command prompt shell on Windows (since shell=True is used to subprocess).
| res = _exec("git rev-list --count HEAD ^{name}".format(name=name)) |
By quoting the name argument to git everything works as expected: \"^{name}\"
Metadata
Metadata
Assignees
Labels
No labels