Skip to content

Commit dab2020

Browse files
authored
Remove custom language pack behavior (#291)
1 parent 2e81cf3 commit dab2020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def is_tracked_with_lfs(filename: Union[str, Path]) -> bool:
7171
)
7272
attributes = p.stdout.strip()
7373
except subprocess.CalledProcessError as exc:
74-
if "not a git repository" in exc.stderr:
74+
if not is_git_repo(folder):
7575
return False
7676
else:
7777
raise OSError(exc.stderr)

0 commit comments

Comments
 (0)