Skip to content

Commit

Permalink
Remove custom language pack behavior (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
LysandreJik authored Aug 24, 2021
1 parent 2e81cf3 commit dab2020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def is_tracked_with_lfs(filename: Union[str, Path]) -> bool:
)
attributes = p.stdout.strip()
except subprocess.CalledProcessError as exc:
if "not a git repository" in exc.stderr:
if not is_git_repo(folder):
return False
else:
raise OSError(exc.stderr)
Expand Down

0 comments on commit dab2020

Please sign in to comment.