Commit 0f9c519
Fix git-bug sync: fetch/push identity refs, handle missing identities
Bug refs reference identity objects stored under refs/identities/*.
Without identity refs, git-bug cache build fails with "identity doesn't
exist" on every command. Fix by:
- Fetching both refs/bugs/* and refs/identities/* from remote
- Detecting missing identity refs and wiping orphaned bug refs
so that the pull starts fresh (data is re-pulled from GitHub)
- Pushing both ref namespaces so subsequent runs can be incremental
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d268ca5 commit 0f9c519
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
| |||
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
63 | | - | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
| 75 | + | |
0 commit comments