Skip to content

Commit

Permalink
Update src/huggingface_hub/repository.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
  • Loading branch information
LysandreJik and sgugger committed Oct 29, 2021
1 parent 6ae35df commit af76d67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/huggingface_hub/repository.py
Expand Up @@ -657,9 +657,8 @@ def lfs_track(
patterns = [patterns]
try:
for pattern in patterns:
cmd = f"git lfs track {'--filename' if filename else ''}".split() + [
pattern
]
cmd = f"git lfs track {'--filename' if filename else ''}".split()
cmd.append(pattern)
run_subprocess(cmd, self.local_dir)
except subprocess.CalledProcessError as exc:
raise EnvironmentError(exc.stderr)
Expand Down

0 comments on commit af76d67

Please sign in to comment.