You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When create_pr=True, push_to_hub ends up submitting several pull requests with one commit each rather than one pull request with several commits. Is that intentional? The latter seems more natural to me but not sure about downstream impacts.
+ (f" (still {num_commits-i-1} to go)"ifnum_commits-i-1else"")
+"."
)
Note how in the else branch, the create_commit call in the for loop has create_pr=create_pr -- I think it should be create_pr=False with a call to create_branch beforehand to pass the PR's revision?
Came across this working on a PR for #7527 -- it wouldn't be as much of a nuisance if push_to_hub worked like that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When
create_pr=True
,push_to_hub
ends up submitting several pull requests with one commit each rather than one pull request with several commits. Is that intentional? The latter seems more natural to me but not sure about downstream impacts.Relevant snippet:
datasets/src/datasets/dataset_dict.py
Lines 1870 to 1905 in e8ee24a
Note how in the
else
branch, thecreate_commit
call in the for loop hascreate_pr=create_pr
-- I think it should becreate_pr=False
with a call tocreate_branch
beforehand to pass the PR's revision?Came across this working on a PR for #7527 -- it wouldn't be as much of a nuisance if
push_to_hub
worked like that.Beta Was this translation helpful? Give feedback.
All reactions