Closed daniellockyer closed 3 years ago
Looks like it's an upstream error from https://github.com/Rich-Harris/degit/issues/207#issuecomment-708409213
workaround is to do username/repo#main
Edit: that issue + some PRs to fix it look stale, maybe this is something that should be handled in this project
Thanks for trying and reporting! Being a previous Rollup collaborator (ish), I had pinged @Rich-Harris to possibly becoming a maintainer of degit
but I haven't received an answer yet.
Handling it here probably means doing a preflight request to GitHub to find the branch
This was a major oversight on my part since I expect ghat
users to create new repos, which would now likely use main
I patched the latest version until a proper default branch detection is implemented, hopefully in degit.
@fregante Perfect, thanks! 🙏🏻
degit
defaults tomaster
for cloning, but new GitHub repositories usemain
as the default branch. I just set up a new repo and tried to useghat
, but get the following error:I could change the default branch of my repo, but I was wondering if you had a better solution?
Reproduction
ghat
elsewhere with this template repoError: could not find commit hash for master
ghat
version: v0.11.1