diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-02 19:04:33 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-02 19:04:33 +0200 |
commit | a6ff66b658b61aef80d936f0183447fe4cb46000 (patch) | |
tree | 4ffc21b36ff043f720fb5d00a8bde34f97f14cf9 /src/libfetchers/git.cc | |
parent | 78ad5b3d91507427fa563f3474dc52da608ad224 (diff) |
Respect the narHash attribute in more input types
call-flake.nix now passes node.info.narHash to fetchTree. This ensures
that dirty Git trees work even in pure mode.
Diffstat (limited to 'src/libfetchers/git.cc')
-rw-r--r-- | src/libfetchers/git.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index e578ed731..dbf57aa33 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -39,7 +39,7 @@ struct GitInput : Input bool isImmutable() const override { - return (bool) rev; + return (bool) rev || narHash; } std::optional<std::string> getRef() const override { return ref; } |