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
Christian Ullrich 84285a1169
Do not list active repositories as unadopted (#22034)
This fixes a bug where, when searching unadopted repositories, active
repositories will be listed as well. This is because the size of the
array of repository names to check is larger by one than the
`IterateBufferSize`.

For an `IterateBufferSize` of 50, the original code will pass 51
repository names but set the query to `LIMIT 50`. If all repositories in
the query are active (i.e. not unadopted) one of them will be omitted
from the result. Due to the `ORDER BY` clause it will be the oldest (or
least recently modified) one.

Bug found in 1.17.3.

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
agit Rename almost all Ctx functions (#22071) 2 years ago
asymkey Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment Add API management for issue/pull and comment attachments (#21783) 2 years ago
auth refactor some functions to support ctx as first parameter (#21878) 2 years ago
automerge refactor some functions to support ctx as first parameter (#21878) 2 years ago
context Implement FSFE REUSE for golang files (#21840) 2 years ago
cron Add doctor command for full GC of LFS (#21978) 2 years ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Allow disable code tab (#20805) 2 years ago
gitdiff Implement FSFE REUSE for golang files (#21840) 2 years ago
issue Rename almost all Ctx functions (#22071) 2 years ago
lfs refactor some functions to support ctx as first parameter (#21878) 2 years ago
mailer refactor some functions to support ctx as first parameter (#21878) 2 years ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations refactor some functions to support ctx as first parameter (#21878) 2 years ago
mirror Implement FSFE REUSE for golang files (#21840) 2 years ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
pull Correctly handle moved files in apply patch (#22118) 2 years ago
release Add API management for issue/pull and comment attachments (#21783) 2 years ago
repository Do not list active repositories as unadopted (#22034) 2 years ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
webhook Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki Implement FSFE REUSE for golang files (#21840) 2 years ago