Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Special parsing for git's not-really-urls containing scp host specifi…
…ers (#2990) * Non-nullable git supportsArchiveCache * Git URLs are not real URLs, they also support scp host specifiers Fixes #1796 * Remove workaround replacing ':' in git URLs (#573, #1796) * Expect already-parsed URL in Git constructor
- Loading branch information
Showing
9 changed files
with
128 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3b8a1ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pornel Any particular reason the workaround resolving the semicolons in urls that was introduced by #2519 has been removed? Can you explain how is it related to #1796?
3b8a1ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apercu Previously "git+ssh://host:path" was interpreted as
git clone "ssh://host/path"
, which from git perspective changes the protocol from SCP URL to a regular SSH URL, and prevented SCP features from working.npm (and Yarn after that fix) interprets "git+ssh://host:path" as
git clone "host:path"
, which allows using SCP features such as host aliases and per-host private keys.