Files
OmniRoute/scripts
Diego Rodrigues de Sa e Souza df68e43042 fix(scripts): restore derived files byte for byte in the strip pass (#20267)
* fix(scripts): restore derived files byte for byte in the strip pass

The strip pass read merge-base and head contents through a helper that
trims its output, so every restored file lost its final newline. The
"restored" blob still differed from the merge base and the PR kept
conflicting on it (stryker.conf.json in the first batch).

Read blobs with a dedicated readBlob() that keeps the exact bytes, and
add a regression test that builds the restore commit from a real git
repository and compares blob ids with the merge base.

* fix(scripts): restore a claim with the base's own text in the strip pass

restoreClaims wrote the parsed base value back as an ASCII number. A
translated mirror that writes the count in native digits (Persian
README: "۲۳۳ مهاجرت") got "233" instead, so the line still differed from
the merge base and the PR kept conflicting on that mirror.

Use the base's exact substring for the claim span. Regression test with
a Persian-digit claim fails on the old code and passes now.
2026-11-15 09:39:55 -03:00
..
…
…
…
…
…
…
…