diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 14:00:12 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:26:20 +0000 |
| commit | d8b85cbce5cba9bfb8b15a8bd5c1b7200ff3e488 (patch) | |
| tree | 608d535034e73fe61c5edbf1bbc3c51621f70faa /test_utils/src/lib.rs | |
| parent | b85683201250e97a30bfe7a5dbba5508f8e86f65 (diff) | |
fix: advertise only state events with resolvable git objects
git-remote-nostr now walks the per-relay state events captured in
FetchReport::state_per_relay (newest first) and advertises the first
one whose every OID is either present on at least one git server
(confirmed via list_refs) or already available locally. If no such
state event exists it falls back to the raw git server state.
Previously the latest nostr state event was always used regardless of
whether its OIDs had been pushed to any server, causing catastrophic
missing-object errors during clone or fetch when a state event was
published ahead of the corresponding git push.
Diffstat (limited to 'test_utils/src/lib.rs')
0 files changed, 0 insertions, 0 deletions