mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 08:42:30 +00:00
respect allRefs=1 when using nix flake prefetch
This commit is contained in:
parent
9ec1a3ae60
commit
31d588db8b
@ -266,7 +266,7 @@ struct GitInputScheme : InputScheme
|
||||
for (auto & [name, value] : url.query) {
|
||||
if (name == "rev" || name == "ref")
|
||||
attrs.emplace(name, value);
|
||||
else if (name == "shallow" || name == "submodules")
|
||||
else if (name == "shallow" || name == "submodules" || name == "allRefs")
|
||||
attrs.emplace(name, Explicit<bool> { value == "1" });
|
||||
else
|
||||
url2.query.emplace(name, value);
|
||||
|
Loading…
Reference in New Issue
Block a user