From 388241666da2e3022f6e7a39a694ee24b7fca050 Mon Sep 17 00:00:00 2001 From: geekan Date: Sat, 8 Jul 2023 23:01:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E9=9D=9Egit=20clone=E7=9A=84?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=B8=8B=E8=BD=BD=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metagpt/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/const.py b/metagpt/const.py index dcd36ad33..6a6971632 100644 --- a/metagpt/const.py +++ b/metagpt/const.py @@ -14,7 +14,7 @@ def get_project_root(): while True: if (current_path / '.git').exists() or \ (current_path / '.project_root').exists() or \ - (current_path.name.lower() == 'metagpt' and current_path.parent.name.lower() != 'tests'): + (current_path / '.gitignore').exists(): return current_path parent_path = current_path.parent if parent_path == current_path: