-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
16 lines (15 loc) · 1.08 KB
/
Copy path.gitattributes
File metadata and controls
16 lines (15 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Normalize the repo to LF in git; check out LF everywhere (avoids CRLF churn on Windows).
* text=auto eol=lf
# Test-vector artifacts are signed/hashed as EXACT BYTES — git must never touch their
# line endings, or the SSHSIG over manifest.json (and the diff hash) breaks on checkout.
# These rules are last so they win for these paths.
spec/test-vectors/** -text
# The adversarial pack is written by the same signer and is just as byte-exact, so it needs
# the same exemption. Nothing fails there today, but only by luck: its signed files happen
# to carry no CR, while eight unsigned ones (the `keys` lists, one expected.json) do — and
# git already rewrote those to LF on the way into the index, a divergence `git status` never
# shows. Let one regenerated manifest.json land with CRLF and that same rewrite breaks its
# SSHSIG in every fresh clone, CI included, while the author's own working tree keeps
# verifying. This rule does not repair the eight already stored as LF (no signature covers
# them) — it stops the next vector from being born broken.
spec/test-vectors-adversarial/** -text