summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsinguliere <35190819+singuliere@users.noreply.github.com>2022-01-01 03:52:00 +0100
committerGitHub <noreply@github.com>2022-01-01 10:52:00 +0800
commitfb2dc956233bae9f1136436e015ebd8190c0113c (patch)
tree042a305a2af5c01e659ef2f63251297c62f7c9d6 /docs
parentc99b8efba2fa7d3ecf3f86740dea05b655167768 (diff)
downloadgitea-fb2dc956233bae9f1136436e015ebd8190c0113c.tar.gz
gitea-fb2dc956233bae9f1136436e015ebd8190c0113c.zip
services/repository: fix ListUnadoptedRepositories incorrect total count (#17865)
The total count returned by ListUnadoptedRepositories is incorrectly calculated. The code snippet within ListUnadoptedRepositories used to verify unadopted repositories is repeated three times in the function. It is moved in the checkUnadoptedRepositories function and a unit test is added to verify it works as expected. A unit test is added to verify the total count returned by ListUnadoptedRepositories is as expected. Signed-off-by: singuliere <singuliere@autistici.org>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions