primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.92k stars 474 forks source link

Deploying to an empty repository #315

Open DarkaMaul opened 11 months ago

DarkaMaul commented 11 months ago

Description

Deploying to an empty repository fails because it cannot list the commits for the main branch. Of note, deploying to a repository without a main branch also fails.

Reproduction

  1. Create a repository in GitHub
  2. In Primo, choose this new repository to deploy your website.

Other way of reproducing:

  1. In the empty repository, make a commit (e.g. create a README) in the master branch.
  2. In Primo, choose this new repository to deploy

Workaround

In the repository, create (an empty) branch main.