When running bd init in a subdirectory of a hub (e.g., ~/Repos/project where ~/Repos/.beads exists), the new database was incorrectly inheriting issues from the parent hub. Root cause: checkGitForIssues() computed the relative path from gitRoot to beadsDir but did not validate that beadsDir was actually inside the git repository. When beadsDir was outside (e.g., ../.beads), it would still attempt to import, causing contamination. Fix: Add a guard to reject beadsDir paths that start with .. (outside the git repository boundary). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9.7 KiB
9.7 KiB