mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 06:33:41 +00:00
ignore makefiles
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user