Failing git commands lose stdout, so errors print empty
未关闭
@KeremTurgutlu 已经在做这个了。
开始于 2026年7月26日。
评估
这个 Issue 还没有评估数据。
描述
bug
Git.__call__'s error handler prints only e.stderr (core.py:50), but git writes conflict/failure detail to stdout, so a failing command reports nothing useful — unlike the success path in callgit, which returns r.stdout + r.stderr.
Repro: in a repo where the merge conflicts, Git(path).merge('upstream/main') prints ERROR: git merge upstream/main: with an empty message and returns None; git's own CONFLICT (content): Merge conflict in ... / Automatic merge failed lines are lost.
- 主要语言
- Jupyter Notebook
- 星标
- 7
- 派生
- 0
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。