diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-30 19:57:40 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-30 19:59:25 +0100 |
commit | 72cd52c3cdd1fc465fade6d553b3823aca9f8b6e (patch) | |
tree | 403a3d512f405a98cf304e1568dadb13f4c79e0b /src/libutil/archive.cc | |
parent | 197922ea4e76ec9439d487e2d16411495a71df4e (diff) |
builtins.fetchgit: Support importing a working tree
For example, you can write
src = fetchgit ./.;
and if ./. refers to an unclean working tree, that tree will be copied
to the Nix store. This removes the need for "cleanSource".
Diffstat (limited to 'src/libutil/archive.cc')
-rw-r--r-- | src/libutil/archive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index ea1deb924..f71229d8f 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -29,7 +29,7 @@ const std::string narVersionMagic1 = "nix-archive-1"; static string caseHackSuffix = "~nix~case~hack~"; -PathFilter defaultPathFilter; +PathFilter defaultPathFilter = [](const Path &) { return true; }; static void dumpContents(const Path & path, size_t size, |