0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 23:06:19 +01:00
gitea/services
zeripath 7a428fae4b
Ensure that all unmerged files are merged when conflict checking (#20528)
There is a subtle bug in the code relating to collating the results of
`git ls-files -u -z` in `unmergedFiles()`. The code here makes the
mistake of assuming that every unmerged file will always have a stage 1
conflict, and this results in conflicts that occur in stage 3 only being
dropped.

This PR simply adjusts this code to ensure that any empty unmergedFile
will always be passed down the channel.

The PR also adds a lot of Trace commands to attempt to help find future
bugs in this code.

Fix #19527

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-07-29 01:19:55 +02:00
..
agit
asymkey
attachment
auth
automerge
comments
context
cron
externalaccount
forms
gitdiff Improve code diff highlight, fix incorrect rendered diff result (#19958) 2022-07-23 19:28:02 +08:00
issue
lfs
mailer Added email notification option to receive all own messages (#20179) 2022-07-28 16:30:12 +08:00
migrations
mirror
org
packages Add Docker /v2/_catalog endpoint (#20469) 2022-07-28 11:59:39 +08:00
pull Ensure that all unmerged files are merged when conflict checking (#20528) 2022-07-29 01:19:55 +02:00
release
repository Slightly simplify LastCommitCache (#20444) 2022-07-25 16:39:42 +01:00
task
user Fix: Actor is required to get user repositories (#20443) 2022-07-21 23:31:22 +02:00
webhook
wiki