radicle-heartwood-lfs/radicle-cli/examples/git
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.md cli: Don't sync on git-fetch 2023-12-13 14:47:14 +01:00
git-push-delete.md cli: Use `git push` to open or update patches 2023-05-12 12:22:08 +02:00
git-push-diverge.md cli: Improve `rad remote add` 2024-01-08 17:28:01 +01:00
git-push.md helper: Fix error message 2024-03-08 23:25:31 +01:00
git-tag.md fetch: allow fetch of annotated tags 2024-03-11 11:13:26 +01:00