Repository navigation
Commit 20acbb7
committed
fix(server): reset a published PR branch even after its upstream was fetched
An idle local PR branch at an old, published head stayed behind when a
fetch had already moved its remote-tracking ref to the rewritten head.
Treat a head reachable from a remote-tracking ref, or in the upstream's
reflog, as safe to reset.
AI-assisted; verified with the tests and tools listed above.1 parent b15a216 commit 20acbb7
2 files changed
Lines changed: 32 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5391 | 5391 | | |
5392 | 5392 | | |
5393 | 5393 | | |
| 5394 | + | |
5394 | 5395 | | |
5395 | 5396 | | |
5396 | 5397 | | |
| |||
5412 | 5413 | | |
5413 | 5414 | | |
5414 | 5415 | | |
5415 | | - | |
| 5416 | + | |
5416 | 5417 | | |
5417 | 5418 | | |
5418 | 5419 | | |
| |||
5430 | 5431 | | |
5431 | 5432 | | |
5432 | 5433 | | |
5433 | | - | |
5434 | | - | |
5435 | | - | |
5436 | | - | |
5437 | | - | |
| 5434 | + | |
| 5435 | + | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
5438 | 5441 | | |
5439 | 5442 | | |
5440 | 5443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3134 | 3134 | | |
3135 | 3135 | | |
3136 | 3136 | | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
3137 | 3159 | | |
3138 | 3160 | | |
3139 | 3161 | | |
3140 | 3162 | | |
3141 | | - | |
| 3163 | + | |
3142 | 3164 | | |
3143 | 3165 | | |
3144 | 3166 | | |
| |||
0 commit comments