ignore makefiles

This commit is contained in:
Erick Friis
2023-12-13 15:06:02 -08:00
parent 34b519b940
commit 13625de9b3

View File

@@ -191,7 +191,6 @@ def copy_repo(
Raises FileNotFound error if it can't find source
"""
def ignore_func(_, files):
return [f for f in files if f == ".git"]
shutil.copytree(source, destination, ignore=ignore_func)
shutil.copytree(
source, destination, ignore=shutil.ignore_patterns(".git", "Makefile")
)