-
Notifications
You must be signed in to change notification settings - Fork 285
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
🐛 sl clone
silently fails for some repositories
#375
Comments
Hmm, that
Though then I tried Looking at https://github.com/cli/cli, I suspect the issue is that the default branch for that repo appears to be Indeed, this seems to work for me:
I suppose that, at least for GitHub repos, we could query what the default branch is via the API? |
I have the same issue with |
You can use the following command to query the default branch for any remote Git repo: git ls-remote --symref git@github.com:cli/cli.git HEAD |
Out of my own curiosity, I'm studying the code base to try and figure out where this API might go if added, I'm guessing somewhere in clone() or pull(). Sharing in case its useful for anyone 😃 Or maybe it should be a new command |
Background: I am trying to clone https://github.com/cli/cli (in order to build it from source to help debug #350 )
Steps to reproduce:
sl clone git@github.com:cli/cli.git
ls cli
Expected output:
README.md
, etc.)Actual output:
Other sanity-testing checks:
git clone
workssl clone
another repo worksgh repo clone
worksversions and configs
sl version
reportsSapling 4.4.2
)Please let me know what other info you need 🙂
Happy New Year 🎆 🎊 🎈
The text was updated successfully, but these errors were encountered: