fetchpatch
silently strips binary sections
#204320
Labels
0.kind: bug
Something is broken
5. scope: tracked
Issue (or PR) is linked back to a `5. scope: tracking` issue
6.topic: fetch
Issue description
When applying a patch through
fetchpatch
that includes a Git binary hunk, that hunk is silently dropped. This can cause all kinds of funky behaviour, e.g. due to missing test artficacts (e.g. media, der certificates) and is not easily noticable.The issue stems from the fact that
patchutils
does not deal with that kind of hunk and ideally we don't want to introduce a dependency ongitMinimal
infetchpatch
.Steps to reproduce
randombit/botan@c2faa88
What is missing after applying patchutils is the hunk for
src/tests/data/x509/ocsp/bdr-int-ocsp-resp.der
.Proposed remediation
Simple and stupid:
possibly with an escape hatch, to ignore missing binaries.
Technical details
cc @vcunat @risicle
The text was updated successfully, but these errors were encountered: