mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 13:11:00 +01:00
libfetchers: Restore plain git inputs recognition
Accidentally broken in dbc235cc62.
Adds a bit of tests for this, even though this protocol is mostly deprecated
everywhere.
This commit is contained in:
parent
4a2fb18ba0
commit
ade3d5d746
2 changed files with 23 additions and 2 deletions
|
|
@ -164,8 +164,7 @@ struct GitInputScheme : InputScheme
|
|||
{
|
||||
std::optional<Input> inputFromURL(const Settings & settings, const ParsedURL & url, bool requireTree) const override
|
||||
{
|
||||
auto parsedScheme = parseUrlScheme(url.scheme);
|
||||
if (parsedScheme.application != "git")
|
||||
if (url.scheme != "git" && parseUrlScheme(url.scheme).application != "git")
|
||||
return {};
|
||||
|
||||
auto url2(url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue