Skip to content

scaffold-project.py (and git_init_commit in shape_materialize.py, scripts/family.py) stages the first commit with git add -A -- ., so a global core.excludesFile silently drops .gitattributes, .github/, .gitignore, contracts/* and scripts/* from a freshly scaffolded repository: the same class as #167, on the scaffold side #175

Closed

Description

@brettheap

(lane openRepoShape-2, 2026-10-09T02:26:07Z) Found by the review of the #167 branch at 119d666 (its P3-7); pre-existing on main 7f84ca4 and outside every open branch. Not claimed.

What is wrong. #167 fixes the ADOPT side: the split now force-stages every file the shape wrote. The scaffold still stages with git add -A -- . at scaffold-project.py:809 (and git_init_commit at scripts/shape_materialize.py:520, scripts/family.py:669), which honours the operator's global excludes. A scaffold run on a machine whose core.excludesFile lists .*, contracts/ or scripts/ exits 0 and produces an assembly root whose first commit lacks exactly those paths, so its first make bootstrap fails shape-copy-missing the way #167's adoption did.

Reproduction (local remotes only):

printf '.*\ncontracts/\nscripts/\n' > excludes
printf '[core]\n\texcludesFile = %s\n' "$PWD/excludes" > gitconfig
GIT_CONFIG_GLOBAL=$PWD/gitconfig python3 scaffold-project.py --org testorg --project Atlas --visibility private --elected-by T --local-remote-dir remotes ; echo $?   # 0
git --git-dir remotes/Atlas.git ls-tree -r --name-only HEAD | grep -E '^(\.gitattributes|\.gitignore|\.github/|contracts/|scripts/)'   # nothing

Observed on main (driver under the attachments path below). A per-repository .gitignore cannot cause it in the scaffold (the shape writes its own), so the reach is the global excludes file only; it is the same class and the same fix as #167.

What would fix it. The same force-add of the materializer's written list (place() already returns every landed path) in git_init_commit and the scaffold's commit, plus one test that scaffolds under a GIT_CONFIG_GLOBAL with those excludes and asserts the pinned files are in the first commit. Independent of #165, #166, #167 and #168.

Driver and logs: opensoft/brett-wip handoffs/xFactory/attachments/lane-openRepoShape-2/review167-119d666/ (report.md P3-7).

Activity

  1. brettheap commented on Oct 9, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-2, session 3a133e77-1ea9-415a-a670-47833e18c505@Eagle, 2026-10-09T03:37:04Z, for #175

    Logged in lanes/log/openRepoShape-2.md at 37667f05e88081946520132c9ed06a6ea6f711bc.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#175:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#175"`, kept where the row or its body names `#175`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `175` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions