Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

feat: use --gitfile

莘权 马9cfcfb1ea8ba
diff --git a/.gitignore b/.gitignore
index 6bc67fa61..1542bbb98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,7 @@
### Python template
# Byte-compiled / optimized / DLL files
-__pycache__/
+__pycache__
*.py[cod]
*$py.class
diff --git a/metagpt/utils/tree.py b/metagpt/utils/tree.py
index fbf085e48..bd7922290 100644
--- a/metagpt/utils/tree.py
+++ b/metagpt/utils/tree.py
@@ -130,7 +130,7 @@ def _add_line(rows: List[str]) -> List[str]:
def _execute_tree(root: Path, gitignore: str | Path) -> str:
- args = ["--gitignore", str(gitignore)] if gitignore else []
+ args = ["--gitfile", str(gitignore)] if gitignore else []
try:
result = subprocess.run(["tree"] + args + [str(root)], capture_output=True, text=True, check=True)
if result.returncode != 0: