Ensure that rebase conflicts are handled in updates #16952

Merged
lunny merged 4 commits from fix-16922-handle-rebase-conflict into main 2021-09-05 09:30:41 +00:00
Contributor

PR #16125 did not update the error handlers to handle conflict errors relating
to rebases. This PR adds them.

Fix #16922

Signed-off-by: Andrew Thornton art27@cantab.net

PR #16125 did not update the error handlers to handle conflict errors relating to rebases. This PR adds them. Fix #16922 Signed-off-by: Andrew Thornton <art27@cantab.net>
lunny reviewed 2021-09-04 07:07:31 +00:00
@ -1137,2 +1137,4 @@
ctx.Error(http.StatusConflict, "Update", "merge failed because of conflict")
return
} else if models.IsErrRebaseConflicts(err) {
ctx.Error(http.StatusConflict, "Update", "rebase failed because of conflict")

Missed return

Missed return
zeripath reviewed 2021-09-04 07:33:01 +00:00
@ -1137,2 +1137,4 @@
ctx.Error(http.StatusConflict, "Update", "merge failed because of conflict")
return
} else if models.IsErrRebaseConflicts(err) {
ctx.Error(http.StatusConflict, "Update", "rebase failed because of conflict")
Author
Contributor
			ctx.Error(http.StatusConflict, "Update", "rebase failed because of conflict")
			return
```suggestion ctx.Error(http.StatusConflict, "Update", "rebase failed because of conflict") return ```
a1012112796 (Migrated from github.com) approved these changes 2021-09-04 14:50:06 +00:00
lafriks (Migrated from github.com) approved these changes 2021-09-05 09:07:31 +00:00
This repo is archived. You cannot comment on pull requests.
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#16952
No description provided.