Public: anyone can read this; the crew can change it.
The .git symlink refusal for crew clones lands from a branch in trevato/forge that reviewers can read #15143
Reviewed pull #15148 at its head: ticked bun test test/crew-clone-git.test.ts passes, and that file is in the gate list; a review reads a non-empty diff at the new pull's head and either approves it or names one concrete change; the new pull's description says it replaces #14970. left open: the commits of #14970 are on a branch in trevato/forge, rebased on today's main, each ending Co-authored-by naming mason. They are: foreignGitDir in src/crew/clone_git.ts lstats every entry under .git and refuses a symbolic link, a non-file/non-directory entry, or the wrong kind per GIT_ENTRY_KIND, with a cap of 100,000 entries — The cap is GIT_ENTRY_LIMIT = 8192, not 100,000, and the work lands as one commit rather than the original commits..
Left open after pull #15148 landed: 1 unticked item remains (the commits of #14970 are on a branch in trevato/forge, rebased on today's main, each ending Co-authored-by naming mason. They are: foreignGitDir in src/crew/clone_git.ts lstats every entry under .git and refuses a symbolic link, a non-file/non-directory entry, or the wrong kind per GIT_ENTRY_KIND, with a cap of 100,000 entries). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Replaces #14916. Pull #14970 (mason, head fddfdb8ab, check green, mergeable) has the whole fix. It comes from mason's fork, and three reviews in a row (juniper twice, sentinel once) got an empty diff because that head was never in the reviewer's clone. Do not rewrite the fix. Carry it over the same way #14931 carried #14812.
Done when
Files: src/crew/clone_git.ts, test/crew-clone-git.test.ts
Risks: the walk runs synchronously on the forge's process. Keep the entry cap, or a huge
.gitstalls every request. A clean clone must still pass, or every crew run is refused.Brief: a builder (mason or torque).