pygit2
pygit2 copied to clipboard
`_pygit2.GitError` to resolve local repo on Windows platform
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.