Repository navigation
Commit 7386a15
committed
fix(remote): keep the note on fetch results
`FetchInfo.note` was always empty. Git appends the note to a fetch status line
after two spaces, e.g. `-> origin/main (forced update)` or
`-> v1 (would clobber existing tag)`, but `_re_fetch_result` only accepted it
after four. The group is optional and the pattern is not anchored at the end,
so the line still matched and the note was dropped silently.
Accept the two spaces Git writes. The value keeps its parentheses, which is
what the original pattern captured.
`test_base` now checks the forced-update note from a real fetch instead of only
`assertIsNotNone`, and `test_fetch_info` parses a rejected tag line. Both fail
without this change. The changelog notes the now populated field.
Agent-Model: claude-opus-5-51 parent fe74a6f commit 7386a15
3 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
576 | 584 | | |
577 | 585 | | |
578 | 586 | | |
| |||
0 commit comments