cleanSource: Avoid copying git files.

svn path=/nixpkgs/trunk/; revision=16190
This commit is contained in:
Nicolas Pierron 2009-07-06 16:19:52 +00:00
parent 0aeeaafa55
commit 736523d992

@ -10,7 +10,7 @@ rec {
cleanSource =
let filter = name: type: let baseName = baseNameOf (toString name); in ! (
# Filter out Subversion and CVS directories.
(type == "directory" && (baseName == ".svn" || baseName == "CVS")) ||
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS")) ||
# Filter out backup files.
(lib.hasSuffix "~" baseName)
);