Skip to content

Wrong ccount on Windows #8

@shortsnake

Description

@shortsnake

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions