Repository navigation
Commit 1be793c
committed
fix(remote): skip pruned refs without a decode warning
`git fetch --prune` reports each remote-tracking ref it deletes as
- [deleted] (none) -> origin/gone
`_get_fetch_info_from_stderr()` collects these with the other fetch
lines, `FetchInfo._from_line()` can't resolve a ref that no longer
exists, and every pruned ref logs "Cannot decode fetch result" at
WARNING. The result list was already right; only the warning was
spurious. Skip the deleted lines before decoding, as the test already
expects ("These should just be skipped").
`test_fetch_prune_skips_deleted_refs` prunes a branch fetched from the
repository itself and checks that no decode warning is logged; it
needs no network and fails without this change under both the `cli`
and `gix` backends.
Agent-Model: claude-opus-5-51 parent 029964a commit 1be793c
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
540 | 557 | | |
541 | 558 | | |
542 | 559 | | |
| |||
0 commit comments