pygit2.RemoteCallbacks.push_update_reference doesn't get full error message
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 408
- 平均マージ
- 2日 57分
- マージ済み PR(30日)
- 7
説明
When a push fails on a pre-receive hook, which sends a error message as to why the push failed validation, the message from pygit2.RemoteCallbacks.push_update_reference is only pre-receive hook declined. Is there any way to get the full output from the failed push?
Also, if I raise an Exception on push_update_reference, it's caught somewhere else and re-raised as "GitError: git_push_status_foreach callback returned -7", so, I can't properly raise any kind of exception to clean up anything, or, output any custom error to the user. What would be the proper way, am I missing something here?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、pygit2.RemoteCallbacks.push_update_reference と、失敗した push のステータスおよび callback の例外がどのように伝播されるかを追跡します。pre-receive hook の完全な出力を公開できるか、また callback の失敗によってクリーンアップやユーザー向けのカスタムエラーをサポートできるかを確認します。両方のケースについて動作がカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100