Skip to content

_pygit2.GitError to resolve local repo on Windows platform  #1187

@karajan1001

Description

@karajan1001

Hello team, I'm using pygit2 to do some fetch operations. The source repo is a local one in the format of file://C:/repopath
, It works pretty fine on Linux and MacOS, But on Windows it raises

_pygit2.GitError: failed to resolve path 'file://C:/repopath': The filename, directory name, or volume label syntax is incorrect.

I searched pygit2 and libgit2 but found no issues related to this. As a temporary solution, I just removed the file:// prefix and it works but I would like to know if there are any more elegant ways to solve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions