Commit 6d160c1
authored
fix!: do not switch to git+ssh for https repository links (#434)
BREAKING CHANGE: git specs using the `https` or `git+https` protocol now
resolve to `git+https` URLs instead of being switched to `git+ssh`.
Shortcut specs (e.g. `github:user/repo`, `user/repo`) and
`git+ssh`/`git://` specs are unchanged.
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
## References
Relates to npm/cli#8703
Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>1 parent 6c2555a commit 6d160c1
4 files changed
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
| 677 | + | |
677 | 678 | | |
678 | | - | |
| 679 | + | |
679 | 680 | | |
680 | | - | |
681 | | - | |
682 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
683 | 684 | | |
684 | 685 | | |
685 | 686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments