git am -3を使用して1 gitリポジトリから別のgitリポジトリに一連のパッチを適用しようとしています。パッチ1から4までの順で適用します。"git am -3"を使ってパッチを適用するとエラーメッセージ "fatal:sha1 information is lacking or useless"が表示される
5回目のパッチになると、「致命的:sha1情報が欠落しているか役に立たない」というエラーが表示されます。 gitが "sha1情報が不足しているか、役に立たない(dev/afile.c)"という不満があるのはなぜですか?問題を解決できますか?
$ git am -3 ~/Tmp/mypatches/0005-fifth.patch
Applying: rpmsg: Allow devices to use custom buffer allocator
fatal: sha1 information is lacking or useless (dev/afile.c).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 first patch
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
なぜ「パッチが0001の最初のパッチで失敗した」と言われたのですが、「git am -3〜/ Tmp/mypatches/0005-fifth.patch」を実行するとエラーなしで完了します。
ありがとうございます。
この問題を引き起こしたパッチにアクセスすると、おそらく役に立ちます。 – Chronial