Two fixes for bare repo worktree setups: 1. fork_protection.go: Use git.GetGitDir() instead of hardcoding .git In worktrees, .git is a file containing gitdir path, not a directory. Using GetGitDir() handles this correctly. 2. sync_git.go: Simplify gitHasBeadsChanges to use absolute paths The previous code used git -C main-repo-root status, but in bare repo worktrees GetMainRepoRoot() returns the parent of the bare repo which is not a valid working tree. Using absolute paths without -C lets git find the repo from cwd, which always works. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4.6 KiB
4.6 KiB