radicle-heartwood-lfs/radicle-fetch/src
Fintan Halpenny 511165bfc5
fetch: prevent missing default branch
If a delegate is missing the default branch for a project certain
computations will fail, e.g. getting the canonical mainline branch.

One prevention for corrupting data is refusing to fetch a delegate
that does not have the default branch, when the repository is a
project. It is assumed that the repository is not a project if calling
`Doc::project` returns an error, since the error variants are not
found and parsing errors.

This is only checked in the case of a delegate since non-delegates are
safe to created COBs that don't require the default branch,
e.g. creating an issue.
2023-11-30 13:50:39 +01:00
..
git fetch: inpsect for Cache 2023-11-09 17:47:03 +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 radicle-fetch 2023-11-06 12:06:13 +01:00
lib.rs node: fetch refs announcements 2023-11-09 17:47:10 +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 Update Rust toolchain to 1.74 2023-11-17 16:58:24 +01:00
state.rs fetch: prevent missing default branch 2023-11-30 13:50:39 +01:00
tracking.rs radicle-fetch 2023-11-06 12:06:13 +01:00
transport.rs Update Rust toolchain to 1.74 2023-11-17 16:58:24 +01:00