fix: Preserve https protocol when working with git#8703
fix: Preserve https protocol when working with git#8703oldium wants to merge 1 commit intonpm:latestfrom
Conversation
|
Hm. Tests work fine, but in reality, nothing changed ( |
|
It seems also https://github.com/npm/pacote needs the same fix |
|
The |
675a3c8 to
a2ceccd
Compare
When the URL explicitly contains https, do not try to switch to ssh. This change is necessary for [npm][3] to retain the protocol, please see the link and the referenced issues [here][1] and [here][2] reporting problems when using ssh instead of requested https. [1]: npm/cli#2610 [2]: npm/cli#4305 [3]: npm/cli#8703 Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
|
Fixed, tested, should work now. The fix in |
|
If you want to try the patched git clone -b fix/git-https-full --single-branch --depth=1 https://github.com/oldium/npm-cli.git
cd npm-cli
npm install
npm link
|
a2ceccd to
a142a53
Compare
a142a53 to
be79162
Compare
When the URL explicitly contains https, do not try to switch to ssh. This change is necessary for [npm][3] to retain the protocol, please see the link and the referenced issues [here][1] and [here][2] reporting problems when using ssh instead of requested https. [1]: npm/cli#2610 [2]: npm/cli#4305 [3]: npm/cli#8703 Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
be79162 to
bac0aca
Compare
bac0aca to
3e95c27
Compare
|
Rebased to latest |
This prevents changing URLs from
httpsandgit+httpsintogit+ssh, but keeps the fall-back togit+sshwhen the protocol is not specified.The change in pacote is necessary in order to have this fully working.
References
Supersedes #5256
Blocked by npm/pacote#434
Fixes #4305
Fixes #2610