diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-07-17 20:34:57 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2020-12-22 10:46:00 +0100 |
commit | 2857b1baaf78bbadeec01adfae8a50fc0f2a254f (patch) | |
tree | c424d8bf474da2fe22b80289c0c3d3f7f9f9d906 /tests/nix-profile.sh | |
parent | 629af83b2d86d77305dc994b83f176a377106c3e (diff) |
Add explicit `allRefs = true;` argument to `fetchGit`
Sometimes it's necessary to fetch a git repository at a revision and
it's unknown which ref contains the revision in question. An example
would be a Cargo.lock which only provides the URL and the revision when
using a git repository as build input.
However it's considered a bad practice to perform a full checkout of a
repository since this may take a lot of time and can eat up a lot of
disk space. This patch makes a full checkout explicit by adding an
`allRefs` argument to `builtins.fetchGit` which fetches all refs if
explicitly set to true.
Closes #2409
Diffstat (limited to 'tests/nix-profile.sh')
0 files changed, 0 insertions, 0 deletions