fix error msg

This commit is contained in:
geekan 2023-12-15 10:44:18 +08:00
parent 222694c329
commit 126bcdafb9

View file

@ -233,6 +233,8 @@ class GitRepository:
files = []
try:
directory_path = Path(self.workdir) / relative_path
if not directory_path.exists():
return []
for file_path in directory_path.iterdir():
if file_path.is_file():
rpath = file_path.relative_to(root_relative_path)