Skip to content

Commit bd8f8b8

Browse files
zeripathStelios Malathouras
authored and
Stelios Malathouras
committed
Reset the conflicted files list in testpatch (go-gitea#18139)
Although go-gitea#18004 will seriously reduce the likelihood of finding conflicts in the first place - one bug was introduced whereby the conflicted files status was not being reset properly. This leads to conflicted PRs remaining conflicted when the conflict has been resolved. Signed-off-by: Andrew Thornton <[email protected]>
1 parent 141a470 commit bd8f8b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/pull/patch.go

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ func checkConflicts(pr *models.PullRequest, gitRepo *git.Repository, tmpBasePath
235235
}()
236236

237237
numberOfConflicts := 0
238+
pr.ConflictedFiles = make([]string, 0, 5)
238239
conflict := false
239240

240241
for file := range unmerged {

0 commit comments

Comments
 (0)