hunk.final_committer.name not work if email is empty
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 1.7k
- 派生
- 408
- 平均合并
- 2 天 57 分钟
- 30 天内合并 PR
- 7
描述
Hi, I found this error:
if email is missing, it gives error "Signarure cannot have an empty name or email"
in libgit2 Slack channel we discuss it and end up that in wrap_signature pygit2 creates new signature where email cannot be empty. It maybe should use git_signature_dup instead?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 wrap_signature,并跟踪 hunk.final_committer.name 如何处理缺少电子邮件的情况。将当前的签名创建过程与报告的 git_signature_dup 可能性进行比较,然后添加或运行一个覆盖空电子邮件的回归测试,并验证签名能够在没有所报告错误的情况下被接受。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, python
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100