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
gh repo clone https://github.com/xxx/yyy
should respect git_protocol
config rather than using the protocol scheme
#9026
Comments
gh repo clone https://github.com/xxx/yyy
doesn't respect git_protocolgh repo clone https://github.com/xxx/yyy
doesn't respect git_protocol
Hey, thanks for the bug report. If you provide the full URL including protocol then that will override your configured |
Thanks William. IMO, the URL form My use case is that I'd like to easily copy and paste URLs from my web browser into my terminal, and have |
I hear you. That might be a reasonable approach but unfortunately this has been the behaviour since the command was first introduced and changing it would be backwards incompatible. The best thing I can suggest is that you use a
This performs a shell parameter expansion to remove
and it will functionally act as:
|
gh repo clone https://github.com/xxx/yyy
doesn't respect git_protocol
gh repo clone https://github.com/xxx/yyy
should respect git_protocol
config rather than using the protocol scheme
I've updated the title and labels to better reflect your request and updated the docs in #9030 to make it clear what the current behaviour is. |
Describe the bug
When cloning a repository by the Github web UI URL,
git_protocol
is not respected.Expected vs actual behavior
I would expect
gh
to respectgit_protocol
, which it does when you specifygh repo clone xxx/yyy
Thank you!!
The text was updated successfully, but these errors were encountered: