mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
parent
26cf0c674f
commit
7d554f295c
2 changed files with 5 additions and 0 deletions
|
@ -142,6 +142,9 @@ std::pair<FlakeRef, std::string> parseFlakeRefWithFragment(
|
|||
parsedURL.query.insert_or_assign("dir", subdir);
|
||||
}
|
||||
|
||||
if (pathExists(flakeRoot + "/.git/shallow"))
|
||||
parsedURL.query.insert_or_assign("shallow", "1");
|
||||
|
||||
return std::make_pair(
|
||||
FlakeRef(Input::fromURL(parsedURL), get(parsedURL.query, "dir").value_or("")),
|
||||
fragment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue