Skip to content

Commit

Permalink
Merge pull request NixOS#8050 from figsoda/allrefs
Browse files Browse the repository at this point in the history
respect allRefs=1 when using `nix flake prefetch`
  • Loading branch information
edolstra authored Mar 15, 2023
2 parents 9ec1a3a + 31d588d commit 1b8c13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfetchers/git.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1b8c13c

Please sign in to comment.