feat: + __init__.py

feat: +import_git_repo
This commit is contained in:
莘权 马 2024-03-28 16:59:09 +08:00
parent 05a4967e0b
commit 1a88b3fc19
7 changed files with 103 additions and 7 deletions

View file

@ -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))