Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Push fails silently

未关闭
#80 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

schacon/ticgit 的其他 Issue

查看 schacon/ticgit 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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