We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e81cf3 commit dab2020Copy full SHA for dab2020
src/huggingface_hub/repository.py
@@ -71,7 +71,7 @@ def is_tracked_with_lfs(filename: Union[str, Path]) -> bool:
71
)
72
attributes = p.stdout.strip()
73
except subprocess.CalledProcessError as exc:
74
- if "not a git repository" in exc.stderr:
+ if not is_git_repo(folder):
75
return False
76
else:
77
raise OSError(exc.stderr)
0 commit comments