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
Change default protocol #2939
Change default protocol #2939
Conversation
Resolves #2937 - When `HUB_`PROTOCOL or `hub.protocol` are not specified, default to `https` instead of `git`, which has been deprecated by GitHub. ```sh $ hub clone github/hub Cloning into 'hub'... fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information. ``` Explicitly setting `hub.protocol` to `git` or using `HUB_PROTOCOL=git` still uses the `git` protocol.
|
I am adding additional commits to fix the features, but note that the following feature is failing on I am getting the same error on local runs of this branch, so I am not changing this feature. |
|
Thank you! I've fixed CI and pushed additional changes to fully finalize the switch to HTTPS as default, including the documentation. |
|
is there any reason why this doesn't qualify for another release, seems pretty critical to me (unless something else is hold that up or blocking) |
Resolves #2937
When
HUB_PROTOCOL orhub.protocolare not specified, default tohttpsinstead ofgit, which has been deprecated by GitHub.Explicitly setting
hub.protocoltogitor usingHUB_PROTOCOL=gitstill uses thegitprotocol.Note that I have not updated any documentation because the default does not appear to be documented anywhere, only overriding to use
git config --global hub.protocol sshorgit config --global hub.protocol https. Now to use the (deprecated) default, one should usegit config --global hub.protocol git.