beads/internal/syncbranch
beads/crew/dave ac24a63187 fix: make tests resilient to project .beads/redirect
Tests were failing because beads.FindDatabasePath() follows the
project's .beads/redirect file, causing tests to find unexpected
databases. Fixed by:

- Setting BEADS_DIR in tests that need isolation from git repo detection
- Clearing BEADS_DIR in TestMain to prevent global contamination
- Updating migration test schema to include owner column

This ensures tests work correctly in crew directories that have
redirect files pointing to shared .beads directories.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/dave
Rig: beads
Role: crew
2026-01-10 22:38:04 -08:00
..
integrity.go fix(sync): atomic export and force-push detection (bd-3bhl, bd-4hh5) 2026-01-04 23:14:11 -08:00
integrity_test.go Add sync branch integrity guards for force-push detection (bd-hlsw.4) 2025-12-30 17:07:25 -08:00
syncbranch.go fix(sync): persist sync branch to yaml and database (GH#909) (#910) 2026-01-05 19:11:55 -08:00
syncbranch_test.go fix: make tests resilient to project .beads/redirect 2026-01-10 22:38:04 -08:00
worktree.go Fix migrate sync failing in git worktree environments (#970) 2026-01-09 11:01:56 -08:00
worktree_divergence_test.go fix: use content-level merge for divergence recovery (bd-kpy) 2025-12-24 22:41:40 -08:00
worktree_helpers_test.go bd sync: 2025-12-23 23:38:57 2025-12-24 00:06:41 -08:00
worktree_path_test.go fix: edge case in normalizeBeadsRelPath for similar prefixes 2025-12-29 15:51:17 -08:00
worktree_sync_test.go refactor: Remove deprecated fetchAndRebaseInWorktree (bd-kkka) 2025-12-28 16:40:26 -08:00