Commit 8ebf1ed
Fix peer-remote detection + pin DreamNode branch to main
Two related cross-machine bugs surfaced by the reverse-direction
(Windows-initiates) demo:
1. GitSyncService only recognized peer remotes whose URL was rad:// or
interbrain://. But the clone-accept sovereignty handover renames the
cloned origin to a peer remote keeping git's NATIVE https:// URL —
so "Check for Updates" reported "No peer remotes found" and never
fetched the peer's beacon. Fixed: a peer remote is simply any remote
that isn't `origin`. The interbrain:// scheme is for .gitmodules
(shared, portable content needing UUID indirection), not local
remote config which is already concrete.
2. DreamNode creation did `git init` with no -b flag, inheriting the
user's init.defaultBranch. Windows machines often still default to
`master`; Mac to `main`. A master DreamNode and a main one can't see
each other's commits. Fixed: all four `git init` call sites now use
`git -c init.defaultBranch=main init`.
#76 (auto-link), #81 (branch pin) — #81 resolved here; #80, #78, #79
still pending for the next rc.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a5250ee commit 8ebf1ed
5 files changed
Lines changed: 31 additions & 13 deletions
File tree
- src/features
- dreamnode
- services
- utils
- social-resonance-filter/services
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
484 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | | - | |
| 241 | + | |
239 | 242 | | |
240 | | - | |
| 243 | + | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
193 | 203 | | |
194 | 204 | | |
195 | 205 | | |
196 | 206 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 207 | + | |
200 | 208 | | |
201 | | - | |
| 209 | + | |
202 | 210 | | |
203 | 211 | | |
204 | | - | |
205 | | - | |
| 212 | + | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
| |||
0 commit comments