This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters