Failed to apply patch with scissors
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia riproducendo il fallimento con git-pw patch apply 120008 e confronta git-pw patch download --mbox con gli input funzionanti --diff e quelli generati da Thunderbird. Esamina come git-pw costruisce l’mbox attorno alla riga From patchwork e verifica il risultato con git am, includendo una patch contenente scissors; il lavoro è completato quando la patch segnalata viene applicata senza rimuovere manualmente quella riga.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 39
- Fork
- 23
- Merge medio
- 48m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getpatchwork/git-pw
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
getpatchwork/git-pw#76 ·
-
YAML output isn't useful Apertaenhancement help wanted
getpatchwork/git-pw#70 · 8 commenti · 1 assegnatario ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
getpatchwork/git-pw#51 ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
getpatchwork/git-pw#50 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
getpatchwork/git-pw#45 · 3 commenti · 1 reazione ·
Tutte le issue di getpatchwork/git-pw
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
canonical/paas-charm#368 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
addition to tracking list Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
StevenBlack/hosts#3256 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
qualcomm/qai-appbuilder#275 ·