Failed to apply patch with scissors
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず git-pw patch apply 120008 で失敗を再現し、git-pw patch download --mbox を、動作する --diff および Thunderbird が生成した入力と比較します。git-pw が From patchwork 行の周辺で mbox をどのように構築しているかを調査し、scissors を含むパッチも含めて、結果を git am でテストします。その行を手動で削除せずに報告されたパッチを適用できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I ran into the following problem while trying to apply this patch:
$ git-pw patch apply 120008
Failed to apply patch:
Applying: New '--binary-output' command line option, fix gdb.mi/ testing on Windows
error: No valid patches in input (allow with "--allow-empty")
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 New '--binary-output' command line option, fix gdb.mi/ testing on Windows
$ git am --show-current-patch=diff
--- 8< ---
$
The following things do work:
- get the patch by saving email using Thunderbird, and use
git amto apply it - get the patch using
git-pw patch download --diff, and usepatchto apply it
But this doesn't work (I suppose because it's the equivalent of git-pw patch apply):
- use
git-pw patch download --mboxand usegit amto apply it
After downloading the patch in the mbox format, I took a look.
On a hunch, I removed the first line:
From patchwork Wed Sep 10 20:46:42 2025
and got:
$ git am v2-New---binary-output-command-line-option-fix-gdb.mi-testing-on-Windows.patch
Applying: New '--binary-output' command line option, fix gdb.mi/ testing on Windows
$
What I understand from this is that the mbox format that patchwork generates is incompatible with git am if the patch contains scissors.
- 主要言語
- Python
- スター
- 39
- フォーク
- 23
- 平均マージ
- 48分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getpatchwork/git-pw のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
getpatchwork/git-pw#76 ·
-
enhancement help wanted
getpatchwork/git-pw#70 · コメント 8 件 · 担当者 1 名 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
getpatchwork/git-pw#51 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
getpatchwork/git-pw#50 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
getpatchwork/git-pw#45 · コメント 3 件 · リアクション 1 件 ·
getpatchwork/git-pw の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100