Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

404s with new github repos (switch to main branch) #155

Open
madeleineostoja opened this issue Nov 21, 2020 · 1 comment
Open

404s with new github repos (switch to main branch) #155

madeleineostoja opened this issue Nov 21, 2020 · 1 comment

Comments

@madeleineostoja
Copy link

madeleineostoja commented Nov 21, 2020

Sao seems to 404 error when trying to fetch recently created GitHub repos, because of the recent switch from master to main branches as the default.

Obviously an easy fix is just to push up a master branch, which fixes the issue. But it's a gotcha and Sao now fails out of the box with new repos

@egoist
Copy link
Member

egoist commented Nov 28, 2020

You can append a branch like this user/repo#main, maybe a better solution is to send a request to GitHub API to retrieve the default branch name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants