mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 12:41:00 +01:00
fetchGit: Drop git+ from the url attribute
This was already dropped in `inputFromURL()`, but not in `inputFromAttrs()`. Now it's done in `fixGitURL()`, which is used by both. In principle, `git+` shouldn't be used in the `url` attribute, since we already know that it's a Git URL. But since it currently works, we don't want to break it. Fixes #14429.
This commit is contained in:
parent
3f18cad5f1
commit
40f600644d
4 changed files with 18 additions and 15 deletions
|
|
@ -35,10 +35,10 @@ INSTANTIATE_TEST_SUITE_P(
|
|||
// Already proper URL with git+ssh
|
||||
FixGitURLParam{
|
||||
.input = "git+ssh://user@domain:1234/path",
|
||||
.expected = "git+ssh://user@domain:1234/path",
|
||||
.expected = "ssh://user@domain:1234/path",
|
||||
.parsed =
|
||||
ParsedURL{
|
||||
.scheme = "git+ssh",
|
||||
.scheme = "ssh",
|
||||
.authority =
|
||||
ParsedURL::Authority{
|
||||
.host = "domain",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue