radicle-heartwood-lfs/radicle-fetch/src
Fintan Halpenny 87d1cb50a0
fetch: allow fetch of annotated tags
If an ancestry check of an annotated tag was triggered then the fetch
from that peer would fail. This is due to `graph_ahead_behind` only
working for commit-ish objects.

To allow for annotated tags, and other object that peel to commits,
the check now peels the two objects to commits before getting their
`Oid`s. The call to `graph_ahead_behind` can take these two `Oid`s
instead.

A test for annotated tags is included as part of the `examples/git`
suite in the CLI tests.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-03-11 11:13:26 +01:00
..
git fetch: allow fetch of annotated tags 2024-03-11 11:13:26 +01:00
transport fetch: assure that the final flush packet is consumed after receiving a pack 2023-11-17 12:24:10 +01:00
git.rs radicle-fetch 2023-11-06 12:06:13 +01:00
handle.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
lib.rs fetch: always fetch canonical rad/id 2024-01-12 16:21:49 +01:00
policy.rs Fix code around default policies 2024-01-25 21:11:08 +01:00
refs.rs radicle-fetch 2023-11-06 12:06:13 +01:00
sigrefs.rs radicle-fetch 2023-11-06 12:06:13 +01:00
stage.rs radicle: Rename many more methods using new naming 2023-12-06 10:02:00 +01:00
state.rs fetch: fix a small clippy warning about unnecessary borrowing 2024-01-15 19:23:42 +02:00
transport.rs Update Rust toolchain to 1.74 2023-11-17 16:58:24 +01:00