fix: Ensure path_in_repo function handles empty path

This commit is contained in:
Paul Gauthier 2024-09-20 12:29:09 -07:00
parent 243be27eb8
commit 2a4527a5af

View file

@ -354,6 +354,8 @@ class GitRepo:
def path_in_repo(self, path):
if not self.repo:
return
if not path:
return
tracked_files = set(self.get_tracked_files())
return self.normalize_path(path) in tracked_files