You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
6543 210b096da7
Ensure that all unmerged files are merged when conflict checking (#20528) (#20536)
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>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago
..
agit move agit dependcy (#19998) 3 years ago
asymkey Move issues related files into models/issues (#19931) 3 years ago
attachment Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
auth EscapeFilter the group dn membership (#20200) (#20254) 3 years ago
automerge Move issues related files into models/issues (#19931) 3 years ago
comments Move issues related files into models/issues (#19931) 3 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
cron Move some code into models/git (#19879) 3 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Move issues related files into models/issues (#19931) 3 years ago
gitdiff Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 3 years ago
issue Check if project has the same repository id with issue when assign project to issue (#20133) (#20188) 3 years ago
lfs Move some code into models/git (#19879) 3 years ago
mailer Move issues related files into models/issues (#19931) 3 years ago
migrations Correctly handle draft releases without a tag (#20314) (#20335) 3 years ago
mirror Always try to fetch repo for mirrors (#19975) 3 years ago
org Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
packages Package registry changes (#19305) 3 years ago
pull Ensure that all unmerged files are merged when conflict checking (#20528) (#20536) 3 years ago
release fix permission check for delete tag (#19985) 3 years ago
repository Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 3 years ago
task Use a more general (and faster) method to sanitize URLs with credentials (#19239) 3 years ago
user Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
webhook fix(telegram): fix link bot to release tag (#19830) 3 years ago
wiki Move some helper files out of models (#19355) 3 years ago