Keep a submodule's own .git/config out of the build context (closes #88) #96

Merged
clawbot merged 1 commits from issue-88-submodule-git-config into next 2026-10-04 12:48:56 +02:00
1 Commits
Author SHA1 Message Date
sneak 44ef6d4158 Keep a submodule's own .git/config out of the build context (closes #88)
check / check (push) Waiting to run
The canonical .dockerignore kept out .git/config and the configs under
.git/modules/, but not the config of a submodule that keeps its own .git
directory, so its credential reached the image. Both git patterns now
carry the **/ prefix.

A submodule whose name has a config segment (config, deploy/config,
config/lib) still loses its whole git directory, and Go's version
stamping fails the build. Closing that needs a wildcard re-include,
which makes BuildKit walk every excluded directory on every build, so
the file records it as a KNOWN GAP with the remedy, git submodule add
--name. REPO_POLICIES.md and both checklists say the same.

Model: opus-5-5
2026-10-04 10:04:42 +00:00