mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-02 04:12:45 +02:00
feat: + __init__.py
feat: +import_git_repo
This commit is contained in:
parent
05a4967e0b
commit
1a88b3fc19
7 changed files with 103 additions and 7 deletions
|
|
@ -251,6 +251,8 @@ class GitRepository:
|
|||
if not directory_path.exists():
|
||||
return []
|
||||
for file_path in directory_path.iterdir():
|
||||
if not file_path.is_relative_to(root_relative_path):
|
||||
continue
|
||||
if file_path.is_file():
|
||||
rpath = file_path.relative_to(root_relative_path)
|
||||
files.append(str(rpath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue