Repositories can currently be created without a default branch, causing the repository index page to appear empty. Enforce a default branch for all repositories to ensure repository content is accessible and the index page functions correctly.
For Knot, this means it will fallback to some branch when no configured default branch is not found.
For XRPC lexicon, this means defaultBranch will be a required field in output schema.
For AppView/KnotMirror, no changes yet. Wait until most repos to have a default branch for backwards compatibility.
I went to take a look at this, and it appears that a default branch is set to what ever the config of the knot server is set to.
Using default here: https://tangled.org/tangled.org/core/blob/master/knotserver/xrpc/create_repo.go#L63 Config set using
mainas default: https://tangled.org/tangled.org/core/blob/master/knotserver/config/config.go#L14🤔