Steve Yegge
be0e8ba9af
fix(sync): prevent circular error in pre-push hook (GH#532)
...
When bd sync pushes from the sync-branch worktree, the pre-push hook
would detect uncommitted JSONL changes and suggest running bd sync -
which is circular since that's what the user is already doing.
Fix: Set BD_SYNC_IN_PROGRESS=1 environment variable when pushing from
worktree, and update pre-push hook to skip checks when this var is set.
Updated files:
- internal/syncbranch/worktree.go: Set env var on push command
- cmd/bd/templates/hooks/pre-push: Check for env var and exit early
- examples/git-hooks/pre-push: Same check
- .beads-hooks/pre-push: Same check
2025-12-16 01:09:30 -08:00
..
2025-12-14 14:12:13 -08:00
2025-12-13 12:50:33 -08:00
2025-12-16 01:09:30 -08:00
2025-12-13 23:22:10 -08:00
2025-12-07 21:09:32 +11:00
2025-12-13 12:50:33 -08:00
2025-11-26 22:02:59 -08:00
2025-12-14 00:37:54 -08:00
2025-12-14 14:18:01 -08:00
2025-12-02 23:44:22 -08:00
2025-12-07 21:34:35 +11:00
2025-12-14 00:37:54 -08:00
2025-11-28 23:19:21 -08:00
2025-12-03 15:55:35 -08:00
2025-12-14 12:40:32 -08:00
2025-11-24 23:39:54 -08:00
2025-11-26 20:59:07 -08:00
2025-11-28 23:14:12 -08:00
2025-11-29 22:24:29 -08:00
2025-11-28 23:10:44 -08:00
2025-11-28 23:10:44 -08:00
2025-12-01 21:09:00 -08:00
2025-12-01 17:37:56 -08:00
2025-11-23 21:33:00 -08:00
2025-12-11 07:11:15 -05:00
2025-11-23 21:33:00 -08:00
2025-11-24 23:39:54 -08:00
2025-12-11 07:11:42 -05:00
2025-12-13 12:50:33 -08:00
2025-11-28 23:14:12 -08:00
2025-12-13 12:50:33 -08:00
2025-12-11 07:11:15 -05:00
2025-12-13 12:50:33 -08:00
2025-12-01 21:09:00 -08:00
2025-11-25 11:46:06 -08:00
2025-12-12 13:19:31 -08:00
2025-11-25 16:36:46 -08:00
2025-11-25 12:03:21 -08:00
2025-12-01 21:17:56 -08:00
2025-11-25 19:32:05 -08:00
2025-12-02 23:44:22 -08:00
2025-11-23 20:33:31 -08:00
2025-12-13 12:50:33 -08:00
2025-12-13 10:04:01 +11:00
2025-12-13 18:05:49 -08:00
2025-12-13 18:05:49 -08:00
2025-11-27 22:39:13 -08:00
2025-12-02 23:44:22 -08:00
2025-12-02 23:44:22 -08:00
2025-12-02 23:44:22 -08:00
2025-12-07 21:14:13 +11:00
2025-12-02 22:41:07 -08:00
2025-12-07 20:57:58 +11:00
2025-11-22 00:11:45 -08:00
2025-11-22 00:11:45 -08:00
2025-11-26 17:42:14 -08:00
2025-12-13 12:50:33 -08:00
2025-12-13 12:50:33 -08:00
2025-12-12 13:28:48 -08:00
2025-12-12 13:28:48 -08:00
2025-12-03 16:24:24 -08:00
2025-11-29 23:22:52 -08:00
2025-12-13 12:50:33 -08:00
2025-11-23 19:42:21 -08:00
2025-12-13 12:50:33 -08:00
2025-12-14 17:20:43 -08:00
2025-11-28 23:14:12 -08:00
2025-11-29 17:01:36 -08:00
2025-11-30 15:35:30 -08:00
2025-12-03 17:50:23 -08:00
2025-12-02 23:44:22 -08:00
2025-11-24 20:16:07 -08:00
2025-11-29 22:24:29 -08:00
2025-12-13 18:09:34 -08:00
2025-11-22 16:49:29 -08:00
2025-11-28 23:11:24 -08:00
2025-12-02 23:44:22 -08:00
2025-12-02 23:44:22 -08:00
2025-12-04 11:21:43 -08:00
2025-12-13 12:50:33 -08:00
2025-12-14 14:11:27 -08:00
2025-12-13 12:50:33 -08:00
2025-12-02 23:44:22 -08:00
2025-12-04 11:21:43 -08:00
2025-11-26 17:42:14 -08:00
2025-12-05 13:20:51 -08:00
2025-12-05 13:20:51 -08:00
2025-12-03 18:08:33 -08:00
2025-12-03 18:08:33 -08:00
2025-12-02 23:44:22 -08:00
2025-11-30 00:38:57 -08:00
2025-12-05 15:48:46 -08:00
2025-12-05 14:47:02 -08:00
2025-12-02 23:44:22 -08:00
2025-12-02 23:44:22 -08:00
2025-12-02 23:44:22 -08:00
2025-12-04 11:21:43 -08:00
2025-11-24 21:16:44 -08:00
2025-12-03 18:10:35 -08:00
2025-12-03 15:55:35 -08:00
2025-11-23 21:42:43 -08:00
2025-12-02 22:41:07 -08:00
2025-11-26 22:02:59 -08:00
2025-11-26 22:02:59 -08:00
2025-12-04 11:21:43 -08:00
2025-12-14 00:55:55 -08:00
2025-12-14 00:55:55 -08:00
2025-12-04 11:21:43 -08:00
2025-12-13 12:50:33 -08:00
2025-11-24 00:21:01 -08:00
2025-12-14 12:40:32 -08:00
2025-11-24 10:56:14 -08:00
2025-11-24 11:28:32 -08:00
2025-12-13 12:50:33 -08:00
2025-11-23 17:16:27 -08:00
2025-12-03 18:30:53 -08:00
2025-12-02 23:44:22 -08:00
2025-12-13 10:04:01 +11:00
2025-12-04 11:21:43 -08:00
2025-12-02 23:38:20 -08:00
2025-12-03 16:24:46 -08:00
2025-12-13 12:50:33 -08:00