You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
degit defaults to master for cloning, but new GitHub repositories use main as the default branch. I just set up a new repo and tried to use ghat, but get the following error:
(node:95712) UnhandledPromiseRejectionWarning: Error: could not find commit hash for master
at Degit._cloneWithTar (/home/neo/ghat/node_modules/degit/dist/index-26d8486e.js:15037:10)
at async Degit.clone (/home/neo/ghat/node_modules/degit/dist/index-26d8486e.js:14878:4)
at async ghat (/home/neo/ghat/lib.js:63:2)
at async /home/neo/ghat/bin.js:32:4
I could change the default branch of my repo, but I was wondering if you had a better solution?
Reproduction
Set up a new GitHub repo for templates
Try and use ghat elsewhere with this template repo
See the following error: Error: could not find commit hash for master
ghat version: v0.11.1
The text was updated successfully, but these errors were encountered:
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
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.1The text was updated successfully, but these errors were encountered: