Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karajan1001 opened this issue Jan 30, 2023 · 0 comments
Open

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

karajan1001 opened this issue Jan 30, 2023 · 0 comments

Comments

@karajan1001
Copy link

karajan1001 commented Jan 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant