Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github now has default branch as "main", update behaviour to accomodate? #254

Closed
EriKWDev opened this issue Jan 13, 2021 · 2 comments · Fixed by #243
Closed

Github now has default branch as "main", update behaviour to accomodate? #254

EriKWDev opened this issue Jan 13, 2021 · 2 comments · Fixed by #243

Comments

@EriKWDev
Copy link

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
Copy link

SwiftWinds commented Jan 26, 2021

As we wait for a response from the maintainers, consider this workaround: #207 (comment)

@fregante
Copy link
Contributor

fregante commented Mar 6, 2021

degit is abandoned. You can use a more up-to-date fork of the tool: https://github.com/tiged/tiged

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

Successfully merging a pull request may close this issue.

3 participants