Skip to content

Fix git add regression: use git reset instead of pathspec exclusion#93

Merged
that-github-user merged 1 commit into
mainfrom
hotfix-git-reset
Mar 28, 2026
Merged

Fix git add regression: use git reset instead of pathspec exclusion#93
that-github-user merged 1 commit into
mainfrom
hotfix-git-reset

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

The :!node_modules pathspec in git add causes errors on repos that gitignore node_modules (which is most repos). Replace with git add -A followed by git reset HEAD -- node_modules to unstage the symlink.

Change type

  • Bug fix

How to test

npm test  # 80 tests pass
npx tsx src/cli.ts run --attempts 2 -t "npm test" "trivial task"
# Should show files changed, not 0

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with Claude Code

The :!node_modules pathspec causes errors on repos that gitignore
node_modules. Instead, stage everything then unstage node_modules
if it got picked up from the worktree symlink.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant