`_pygit2.GitError` to resolve local repo on Windows platform
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 1.7k
- 派生
- 408
- 平均合并
- 2 天 57 分钟
- 30 天内合并 PR
- 7
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件或测试。首先使用本地 file://C:/repopath URL 在 Windows 上复现 fetch,并将其与所描述的 Linux 和 macOS 行为进行比较。当已记录或修正的本地仓库 URL 处理能够在 Windows 上正常工作且不再出现报告的路径语法错误时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, python
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100