Files
beads/cmd/bd
Steve Yegge 947e7188aa fix(sync): support external BEADS_DIR in separate git repository
When BEADS_DIR environment variable points to a separate git repository,
bd sync previously failed with "fatal: 'main' is already used by worktree"
because it computed repoRoot from cwd instead of the beads directory.

This fix detects when beads dir is in a different git repo than cwd and
uses direct git operations (add/commit/push/pull) instead of worktree-based
sync, bypassing the problematic worktree creation entirely.

Cherry-picked from PR #533 (cleaned up unrelated changes).

Co-Authored-By: dand-oss <dand-oss@users.noreply.github.com>
2025-12-13 10:44:58 -08:00
..
2025-12-03 16:24:46 -08:00
2025-12-13 10:07:36 +11:00
2025-11-25 19:32:05 -08:00
2025-12-07 20:57:58 +11:00
2025-12-13 10:07:36 +11:00
2025-11-24 21:16:44 -08:00
2025-11-24 11:28:32 -08:00
2025-12-13 10:07:36 +11:00
2025-11-23 17:16:27 -08:00
2025-12-03 16:24:46 -08:00