"object not found - no match for id" in pre-receive hook
まだ誰も着手していません。
評価
調査の方向性
issue に記載されているとおり、pre-receive hook で lookup を再現し、git show <new_hash> も含めて update hook と比較する。Git では解決できるのに Rugged では受信した commit を解決できない理由を追跡する。差異を説明し、必要な fix またはドキュメントを特定できれば完了とする。
索引モデルが issue の本文から書いたものです。
説明
If I try to lookup the new commit hash from a pre-receive hook, I am getting the following error
object not found - no match for id
The lookup works correctly, when executed from the update hook.
But If I execute git show <new_hash> from the pre-receive hook, it is showing the diff.
I believe the following difference in the documentation for pre-commit and update hooksexplains why it is unavailable inpre-commit` hook.
pre-commit: Just before starting to update refs on the remote repository, the pre-receive hook is invoked.
update: Just before updating the ref on the remote repository, the update hook is invoked.
But still, why can't rugged access the received commit, even though the git executable is able to do it?
- 主要言語
- C
- スター
- 2.3k
- フォーク
- 293
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
libgit2/rugged のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
-
Nmap
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
flang:fir-hlfir
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
llvm/llvm-project#225935 ·