`_pygit2.GitError` to resolve local repo on Windows platform
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 408
- Avg merge
- 2d 57m
- Merged PRs (30d)
- 7
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing the fetch on Windows with the local file://C:/repopath URL and compare it with the Linux and macOS behavior described. Done means the documented or corrected local-repository URL handling works on Windows without the reported path-syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100