You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address review feedback on nested git repo handling
Improvements based on reviewer bot feedback:
1. Enhanced safety check (HIGH priority):
- Now uses 'git ls-files -s --cached' to detect mode 160000 entries
- Catches newly added/removed gitlinks, not just pointer changes
- Added check for .gitmodules changes with warning log
2. Improved pathspec exclusion (MEDIUM priority):
- Added 'git rm --cached' to remove existing gitlinks before staging
- Prevents staging of gitlink entries already in the index
- Ensures complete exclusion of nested repo changes
3. Better error logging (LOW priority):
- Added warning logs for git command failures in findNestedRepos()
- Helps debugging while avoiding feature breakage
- Distinguishes expected errors (no .gitmodules) from real issues
All tests continue to pass with these enhancements.
0 commit comments