gitui-org / gitui-org/gitui

Cannot commit with empty e-mail.

未关闭
#2,178 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Rust
星标
22.5k
派生
774
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
When git is configured with an empty e-mail address, `gitui` does not allow commits.

**To Reproduce**
Steps to reproduce the behavior:
```
git config --global user.email "<>"
git init foo
cd foo
echo "some content" > a_file.txt
gitui
# Stage a_file.txt
# Hit "c" to start a commit
# Type any commit message and hit enter
```

**Expected behavior**
A new commit should be created.

**Screenshots**
![image](https://github.com/extrawurst/gitui/assets/1566372/7cafc4d2-2f3b-4d9e-8e50-7e95643fb7bd)

**Context (please complete the following information):**
- Fedora 39
- GitUI 0.24.3
- Git 2.44.0

贡献指南

打开贡献指南

调研方向

未指定源文件或测试。首先使用列出的 git config、仓库、暂存和提交步骤复现失败,然后跟踪 gitui 的提交流程以处理空电子邮件。完成的标准是:在配置的电子邮件为空的情况下成功创建提交;如果现有测试结构支持,则为此场景提供覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
git, rust
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。