Push fails silently
还没有人认领这个 Issue。
评估
调研方向
Start at git-meta-lib/src/push.rs around line 199, then reproduce the failure with ti sync against a remote whose git hook denies the push. Compare the sync output with git push output and verify that hook output and the failed push status are reflected instead of reporting success.
由索引模型根据 Issue 内容生成。
描述
Context
When pushing tickets to a git server that uses git hooks, ti does not forward remote hook stdout and stderr.
In addition to that, ti does not account for failed hook related pushes.
Example
ti output when syncing to remote with a hook that denies push :
$ ti sync
Remote: origin
Ref: refs/meta/main
URL: http://localhost:8010/test-repo
Pull: no new tickets.
Push: 1 ticket(s) synced.
Done.
Git push output with the same hook :
$ git push
Énumération des objets: 8, fait.
Décompte des objets: 100% (8/8), fait.
Compression par delta en utilisant jusqu'à 12 fils d'exécution
Compression des objets: 100% (6/6), fait.
Écriture des objets: 100% (6/6), 1.45 KiO | 1.45 MiO/s, fait.
Total 6 (delta 3), réutilisés 0 (delta 0), réutilisés du paquet 0 (depuis 0)
remote: error: hook declined to update refs/heads/main
To http://localhost:8010/test-repo
! [remote rejected] main -> main (hook declined)
erreur : impossible de pousser des références vers 'http://localhost:8010/test-repo'
Cause
This probably has to do with the following line in git-meta-lib.
[!note]
The failing hook does not contain any of the expressions used in this line.
- 主要语言
- Rust
- 星标
- 531
- 派生
- 244
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
schacon/ticgit 的其他 Issue
相似的 Issue
-
area:desktop priority:p2 type:bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
fritzprix/libr-agent#2165 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
area:ecosystem bug
难度 2/5 1-3 小时 新手友好度 75/100
Chelis-Lang/chelis#3942 ·
维护者通常 1 天内回复