Skip to content
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

Fix creating empty commit on PR #2413

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Fix creating empty commit on PR #2413

merged 2 commits into from
Jul 24, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jul 23, 2024

Fix #2411 cc @narugo1992

When trying to create an empty commit, the commit call is not done. Instead we retrieve the information from the last commit on the revision. On a PR, the revision is quoted twice leading to a HTTP 404 error. This PR fixes it.

I also added a regression test for it.

EDIT: added 0329085 after #2412

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin merged commit 4b9394f into main Jul 24, 2024
17 checks passed
@Wauplin Wauplin deleted the 2411-fix-empty-commit-on-pr branch July 24, 2024 14:19
Wauplin added a commit that referenced this pull request Jul 24, 2024
* Fix creating empty commit on PR

* unquoted revision for fetching files to copy as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commit creation on pr error when using v0.24.0
3 participants