diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/gix-url/src/scheme.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/gix-url/src/scheme.rs b/vendor/gix-url/src/scheme.rs index 1c5f04526..a50b735c7 100644 --- a/vendor/gix-url/src/scheme.rs +++ b/vendor/gix-url/src/scheme.rs @@ -24,7 +24,8 @@ pub enum Scheme { impl<'a> From<&'a str> for Scheme { fn from(value: &'a str) -> Self { match value { - "ssh" => Scheme::Ssh, + // "ssh+git" and "git+ssh" are legacy, but Git still allows them and so should we + "ssh" | "ssh+git" | "git+ssh" => Scheme::Ssh, "file" => Scheme::File, "git" => Scheme::Git, "http" => Scheme::Http, |