Repository navigation
Commit dc15020
fix(fleet): restore the origin/main tracking ref on drifted Windows clones (#6)
A single-branch clone made against the old repo keeps a refspec that no longer
writes refs/remotes/origin/main, so repointing the URL was not enough: the
fetch only moved FETCH_HEAD and rev-parse still failed. The refresh now
restates the refspec, and falls back to FETCH_HEAD rather than building
whatever commit the machine sat on.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent b79c8ed commit dc15020
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
60 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| |||
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
80 | | - | |
81 | | - | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
0 commit comments