mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Interpret all file:// URIs as Git repositories
This commit is contained in:
parent
beab05851b
commit
e38ec77de8
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ FlakeRef::FlakeRef(const std::string & uri)
|
|||
data = d;
|
||||
}
|
||||
|
||||
else if (std::regex_match(uri.c_str(), match, uriRegex) && hasSuffix(match[4], ".git")) {
|
||||
else if (std::regex_match(uri.c_str(), match, uriRegex)
|
||||
&& (match[2] == "file" || hasSuffix(match[4], ".git")))
|
||||
{
|
||||
IsGit d;
|
||||
d.uri = match[1];
|
||||
for (auto & param : tokenizeString<Strings>(match[5], "&")) {
|
||||
|
|
Loading…
Reference in a new issue