When using sync-branch with aggressive gitignore on code branches (.beads/* ignored), gitHasBeadsChanges() returns false because git does not track the files. This caused bd sync to skip CommitToSyncBranch entirely, even though CommitToSyncBranch has its own internal change detection that checks the worktree where gitignore is different. The fix bypasses gitHasBeadsChanges when useSyncBranch is true, letting CommitToSyncBranch determine if there are actual changes in the worktree. Closes #812 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8.6 KiB
8.6 KiB