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

Handle push rejection in branch and upload #10854

Merged
merged 2 commits into from Mar 28, 2020

Conversation

zeripath
Copy link
Contributor

  • Handle push rejections and push out-of-date in branch creation and file upload.
  • Remove the duplicated sanitize from services/pull/merge
  • Move the errors Err(Merge)PushOutOfDate and ErrPushRejected to modules/git
  • Handle errors better in the upload file dialogs

Errors still need to be better handled in the API and the wiki but these can wait for another PR.

Fix #10460

* Handle push rejections and push out-of-date in branch creation and
file upload.
* Remove the duplicated sanitize from services/pull/merge
* Move the errors Err(Merge)PushOutOfDate and ErrPushRejected to
modules/git
* Handle errors better in the upload file dialogs

Errors still need to be better handled in the API and the wiki but these
can wait for another time.

Fix go-gitea#10460

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added this to the 1.12.0 milestone Mar 27, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 27, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 28, 2020
@guillep2k
Copy link
Member

Ping LG-TM

@guillep2k guillep2k merged commit 7cd4704 into go-gitea:master Mar 28, 2020
@zeripath zeripath deleted the handle-push-rejection-properly branch March 28, 2020 07:51
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error 500 on "create branch" with pre-receive hook active
4 participants