pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

`_pygit2.GitError` to resolve local repo on Windows platform

Open karajan1001 opened this issue 2 years ago • 0 comments

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.

karajan1001 avatar Jan 30 '23 09:01 karajan1001