Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

clean_ok should be True by default #462

Merged
merged 1 commit into from
Nov 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/huggingface_hub/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def push_to_hub(
self,
commit_message: Optional[str] = "commit files to HF hub",
blocking: Optional[bool] = True,
clean_ok: Optional[bool] = False,
clean_ok: Optional[bool] = True,
auto_lfs_prune: Optional[bool] = False,
) -> Optional[str]:
"""
Expand All @@ -1218,7 +1218,7 @@ def push_to_hub(
Message to use for the commit.
blocking (`bool`, `optional`, defaults to `True`):
Whether the function should return only when the `git push` has finished.
clean_ok (`bool`, `optional`, defaults to `False`):
clean_ok (`bool`, `optional`, defaults to `True`):
If True, this function will return None if the repo is untouched.
Default behavior is to fail because the git command fails.
auto_lfs_prune (`bool`, defaults to `False`):
Expand Down