Merge pull request #8050 from figsoda/allrefs

respect allRefs=1 when using `nix flake prefetch`
This commit is contained in:
Eelco Dolstra 2023-03-15 17:58:01 +01:00 committed by GitHub
commit 1b8c13cbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);