radicle-heartwood-lfs/radicle-fetch
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
..
src fetch: prevent missing default branch 2023-11-30 13:50:39 +01:00
Cargo.toml fetch: update `gix` dependencies to the latest version 2023-11-17 12:24:10 +01:00