diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-07-28 22:46:39 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2020-07-28 22:46:39 +0200 |
commit | e4940e90f399c5cde5f44f099ca5cdf5340d22b8 (patch) | |
tree | ff3be32b97cf31f800492c6bc8de275d6399beff /src/libexpr/flake | |
parent | f74243846512ffabf082985bca395890c97643e0 (diff) |
Restore backwards-compat for current `builtins.fetchGit`
If a repo is dirty, it used to return a `rev` object with an "empty"
sha1 (0000000000000000000000000000000000000000). Please note that this
only applies for `builtins.fetchGit` and *not* for `builtins.fetchTree{
type = "git"; }`.
Diffstat (limited to 'src/libexpr/flake')
-rw-r--r-- | src/libexpr/flake/flake.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/flake/flake.hh b/src/libexpr/flake/flake.hh index 77f3abdeb..c2bb2888b 100644 --- a/src/libexpr/flake/flake.hh +++ b/src/libexpr/flake/flake.hh @@ -106,6 +106,6 @@ void emitTreeAttrs( EvalState & state, const fetchers::Tree & tree, const fetchers::Input & input, - Value & v); + Value & v, bool emptyRevFallback = false); } |