Github now has default branch as "main", update behaviour to accomodate?
EriKWDev opened this issue · 2 comments
EriKWDev commented
There are more and more GitHub repos whose main branch is called "main" and no-longer "master". Would it perhaps be possible to either a) change the default branch for GitHub-commands to be "main" or b) first try and get master, and, if that fails, instead try and fetch branch main and only after that fail the command.
The current error message we get is ! could not find commit hash for master
. The new message could perhaps turn into ! could not find commit hash for neither master nor main
.
SwiftWinds commented
As we wait for a response from the maintainers, consider this workaround: #207 (comment)
fregante commented
degit
is abandoned. You can use a more up-to-date fork of the tool: https://github.com/tiged/tiged