You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
adopt-project.py: a nested .gitattributes setting eol or -text for a pinned copy outranks #471's root LF block, so Windows writes CRLF #530
Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.
The lines as written on the tracking issues
A source with a NESTED .gitattributes (scripts/.gitattributes, .github/.gitattributes) that sets eol or -text for a pinned copy under it outranks the root block for that copy, and a Windows checkout can still write it CRLF; nothing in adopt reads nested attribute files (#471's fix).
— #457, comment
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-14T22:34:22Z, for #530
Logged in lanes/log/openRepoShape-1.md at f4c32479cdcc18989f71c108bd64a0d37bd45c85.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#530:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#530"`, kept where the row or its body names `#530`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `530` as a whole token:
none
To lane openRepoShape-1, which has claimed this issue: one more line for it, with two riders. From the checklist triage of 2026-10-15; Brett Heap approved its recommendations at 2026-10-15T16:49:38Z. Its D5(a) adds the CRLF .gitattributes line below to this issue rather than filing a new one, so one pull request and one review cover the limits of #471's block.
Scope added:check finds, before any leg exists, a source .gitattributes blob that git add would re-encode; the block names each copy at the path git tracks.
A source .gitattributes committed with CRLF under a non-auto rule (* text eol=lf or * text eol=crlf, each line ended \r\n) is renormalised to LF whole when the split stages it (git add -A, adopt-project.py:7306). check exits 0, then execute exits 1 with FINDING adopt-lost: .gitattributes after both legs exist; the source and its main are untouched. A CRLF blob under * text=auto (or * text=auto eol=lf) adopts and verifies. Measured at 1ce4f45. Main 3121945 behaves the same, so this is not #511's.
— #457, comment
A pinned copy written through a root-kept symlinked DIRECTORY (.github -> ci) is named in #471's block by its link spelling, /.github/workflows/validate.yml text eol=lf (eol_line, scripts/shape_materialize.py:721). Git tracks ci/workflows/validate.yml, so that line governs nothing. #504 still accepts such a link (tests/test_adopt_root_symlinks.py:1203, :1205). Measured at 1ce4f45 with a source rule * text=auto eol=crlf: check and execute exit 0, the clone writes ci/workflows/validate.yml CRLF, and validate-pins.py exits 1 with shape-copy-drift: .github/workflows/validate.yml (a control without the link exits 0). Not a regression: main 3121945, with no block, reports nine shape-copy-drift findings for the same source. Where git has core.symlinks=false, execute refuses first (adopt-symlinks-off).
— #457, comment
The block settles line endings only. eol_line writes /<path> text eol=lf and nothing else (scripts/shape_materialize.py:721), and extend_eol_block reads no other word (:773). Git still applies a source's other rules to a pinned copy, so a source filter= or working-tree-encoding= rule reaches it. Measured at 1ce4f45 with *.py working-tree-encoding=UTF-16LE-BOM: execute exits 2 after both legs exist, at git add -A (fatal: failed to encode 'scripts/repo_shape.py' from UTF-16LE-BOM to UTF-8), and nothing is rolled back. ident changes a copy only if it holds $Id$, and none of the 11 pinned copies does.
— #457, comment
Activity
docs/release-notes/v1.0.0.md: brought up to main 5ed3e5d, so section …
brettheap commentedon Oct 14, 2026
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-14T22:34:22Z, for #530
Logged in
lanes/log/openRepoShape-1.mdatf4c32479cdcc18989f71c108bd64a0d37bd45c85.The three reads (lane-collision-protocol Rule 1):
brettheap commentedon Oct 15, 2026
(lane openRepoShape-2, 2026-10-15T17:20:21Z)
To lane openRepoShape-1, which has claimed this issue: one more line for it, with two riders. From the checklist triage of 2026-10-15; Brett Heap approved its recommendations at 2026-10-15T16:49:38Z. Its D5(a) adds the CRLF
.gitattributesline below to this issue rather than filing a new one, so one pull request and one review cover the limits of #471's block.Scope added:
checkfinds, before any leg exists, a source.gitattributesblob thatgit addwould re-encode; the block names each copy at the path git tracks.Line
.gitattributesgets one marked block of/<copy> text eol=lflines appended to it in the split, so a Windows clone writes the pinned copies at the root with the bytes the pin records; the verification counts that file as the source's bytes followed by exactly that block, andupdate-shape.py apply --addextends it (#471) #511 limit] A root.gitattributesblob committed CRLF under* text eol=lforeol=crlfendsadopt-lostafter both legs. Where: adopt-project.py_stage_the_split(git add -A -- ., :8084) and the verification. Effort M; all. On main26c1600: Probe at 26c1600: CRLF blobs under* text eol=lfand under* text eol=crlfeach givecheck0, thenexecute1 withFINDING adopt-lost: .gitattributes (…) is in no leg, not in the root tree, and not listed as drop, both leg remotes made andadopt/three-repo-shapepushed to the source; a CRLF blob under* text=autoand an LF blob under* text eol=lfboth endadoption verified. (source)Rides along (backlog; tick it here if the same change covers it)
.gitattributesgets one marked block of/<copy> text eol=lflines appended to it in the split, so a Windows clone writes the pinned copies at the root with the bytes the pin records; the verification counts that file as the source's bytes followed by exactly that block, andupdate-shape.py apply --addextends it (#471) #511 limit] A kept directory link.github -> ci: the LF block names the link's path, so the real copy checks out CRLF. Where: scripts/shape_materialize.pyeol_line(:712-721). Effort M; Linux, macOS (with symlinks off,executerefuses first,adopt-symlinks-off). On main26c1600: Probe at 26c1600 (.github -> cianswered root,* text=auto eol=crlf):check0,execute0 withadoption verified, the block holds/.github/workflows/validate.yml text eol=lf, and in a clonegit check-attrgivesci/workflows/validate.ymltext: auto/eol: crlfand the file holds CRLF; the control without the link getseol: lfand LF bytes. (source).gitattributesgets one marked block of/<copy> text eol=lflines appended to it in the split, so a Windows clone writes the pinned copies at the root with the bytes the pin records; the verification counts that file as the source's bytes followed by exactly that block, andupdate-shape.py apply --addextends it (#471) #511 limit] A sourceworking-tree-encoding=orfilter=rule reaches the pinned copies;executedies atgit addafter both legs. Where: adopt-project.py_stage_the_split; shape_materialize.pyeol_line(:721). Effort M; all. On main26c1600: Probe at 26c1600 with*.py working-tree-encoding=UTF-16LE-BOM:check0, thenexecute2 atgit add -A -- .withfatal: failed to encode 'scripts/bootstrap.py' from UTF-16LE-BOM to UTF-8, both leg remotes made, no split branch pushed; the block still writes onlytext eol=lf(shape_materialize.py:721). (source)Each line above is marked
→ #530on #457. Tick it there too when this closes.The lines as written on #457
adopt-project.py: the nested `.gitattributes` check reads `text` befo…
adopt-project.py: `check` finds, and `execute` refuses before any leg…
adopt-project.py and tests/test_adopt_nested_attributes.py: no string…
tests/test_adopt_nested_attributes.py: three comments cite #530's rev…
Merge origin/main (de428f5) into fix/530-adopt-nested-gitattributes
Merge origin/main (4cf5fb0) into l3-563-docs
docs/release-notes/v1.1.0.md: refreshed at main 4cf5fb0 (49 pull requ…
adopt-project.py: `check` asks this machine's git what the split stor…
adopt-project.py and shape_materialize.py: #471's line-ending block n…
adopt-project.py: `check`'s throwaway repositories are made in the wo…
adopt-project.py: `check`'s throwaway repositories are made in the wo…
adopt-project.py: `check`'s compare for the mount's `git rm` skips th…