Skip to content

Handle push rejection in branch and upload - #10854

Merged
guillep2k merged 2 commits into
go-gitea:masterfrom
zeripath:handle-push-rejection-properly
Mar 28, 2020
Merged

guillep2k merged 2 commits into
go-gitea:masterfrom
zeripath:handle-push-rejection-properly

Conversation

@zeripath

Copy link
Copy Markdown
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
Copy Markdown
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