cleanSource: Avoid copying git files.
svn path=/nixpkgs/trunk/; revision=16190
This commit is contained in:
parent
0aeeaafa55
commit
736523d992
|
@ -10,7 +10,7 @@ rec {
|
||||||
cleanSource =
|
cleanSource =
|
||||||
let filter = name: type: let baseName = baseNameOf (toString name); in ! (
|
let filter = name: type: let baseName = baseNameOf (toString name); in ! (
|
||||||
# Filter out Subversion and CVS directories.
|
# Filter out Subversion and CVS directories.
|
||||||
(type == "directory" && (baseName == ".svn" || baseName == "CVS")) ||
|
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS")) ||
|
||||||
# Filter out backup files.
|
# Filter out backup files.
|
||||||
(lib.hasSuffix "~" baseName)
|
(lib.hasSuffix "~" baseName)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue