Files
devvm/testdata/script
w3cjandClaude Opus 5.5 365e562cbc fix(gitprotect): lock only real git dirs, never a folder a VM names as one (#28)
The VM writes a submodule's .git file or folder, so it could name any
folder in the project as a git dir, and devvm then locked that folder's
hooks and config (a React src/hooks, say) or made an empty hooks folder
there. A git dir in the working tree now counts only when isGitDir
passes (a HEAD next to objects and refs folders), the check gitDirs
already ran for .git/modules. devvm locks and creates nothing in a
folder that fails it, and reports it once, and again whenever it
changes, as the new git_gitdir_not_git (delegation kind notgit).

Docs: safety/git-protection's When devvm reports .git, and
internals/git-protection's What's locked and On each launch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 19:16:24 -07:00
..