Skip to content

Commit 66c8010

Browse files
authored
clean_ok should be True by default (#462)
1 parent 6855f56 commit 66c8010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/huggingface_hub/repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ def push_to_hub(
12061206
self,
12071207
commit_message: Optional[str] = "commit files to HF hub",
12081208
blocking: Optional[bool] = True,
1209-
clean_ok: Optional[bool] = False,
1209+
clean_ok: Optional[bool] = True,
12101210
auto_lfs_prune: Optional[bool] = False,
12111211
) -> Optional[str]:
12121212
"""
@@ -1218,7 +1218,7 @@ def push_to_hub(
12181218
Message to use for the commit.
12191219
blocking (`bool`, `optional`, defaults to `True`):
12201220
Whether the function should return only when the `git push` has finished.
1221-
clean_ok (`bool`, `optional`, defaults to `False`):
1221+
clean_ok (`bool`, `optional`, defaults to `True`):
12221222
If True, this function will return None if the repo is untouched.
12231223
Default behavior is to fail because the git command fails.
12241224
auto_lfs_prune (`bool`, defaults to `False`):

0 commit comments

Comments
 (0)