Add submodule safety rule to CLAUDE.md
Instructs AI agents to always push submodule commits to remote main before updating the parent pointer, preventing orphaned commits.
This commit is contained in:
parent
893e1a5d4b
commit
3b4c6f124b
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ tail -f /tmp/cmux-debug.log
|
|||
## Pitfalls
|
||||
|
||||
- Do not add an app-level display link or manual `ghostty_surface_draw` loop; rely on Ghostty wakeups/renderer to avoid typing lag.
|
||||
- **Submodule safety:** When modifying a submodule (ghostty, vendor/bonsplit, etc.), always push the submodule commit to its remote `main` branch BEFORE committing the updated pointer in the parent repo. Never commit on a detached HEAD or temporary branch — the commit will be orphaned and lost. Verify with: `cd <submodule> && git merge-base --is-ancestor HEAD origin/main`.
|
||||
|
||||
## E2E mac UI tests
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue