Download raw body.
gotd: allow repository directives in global scope
On Sat, Nov 04, 2023 at 11:33:13AM +0100, Stefan Sperling wrote:
> static int
> repo_has_protected_refs(struct gotd_repo *repo)
> {
> return (TAILQ_EMPTY(&repo->protected_tag_namespaces) &&
> TAILQ_EMPTY(&repo->protected_branch_namespaces) &&
> TAILQ_EMPTY(&repo->protected_branches));
> }
Oops, careful I forgot a ! in front of this check.
Or we could rename the function to repo_has_no_protected_refs.
gotd: allow repository directives in global scope