-
Notifications
You must be signed in to change notification settings - Fork 724
Unable to create branches with the --revision
CLI flag
#1841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@AlpinDale what would you think about having a
I am still unsure whether branch creation should be automatic or not. |
@Wauplin I don't see now this would be an issue, since the tool automatically creates repositories anyway. Creating a branch by default shouldn't be a problem compared to that. If the plan is to have a Also, I've always wondered why HF decided to call branches "revisions". A lot of people don't know they refer to branches from what I've gathered. |
Fair point @AlpinDale. I wanted to think twice before implementing it but it's now done (see #1857).
Git revisions are broader than simply "branches". A git revision can be any ref: a commit hash, a tag, a branch, etc. Typically, PRs are pushed to a special ref |
PR is merged! #1857 It will be shipped in next release. In the meantime feel free to install |
Describe the bug
The
--revision
flag forhuggingface-cli
seems to only take existing revisions. The expected behaviour should be the creation of a new branch if it doesn't exist, same as the repository positional argument.Reproduction
huggingface-cli upload username/repo upload foo.bin --revision dev
Logs
The text was updated successfully, but these errors were encountered: