mirror of
https://gitee.com/gitea/gitea.git
synced 2024-11-30 10:47:40 +08:00
fb2dc95623
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> |
||
---|---|---|
.. | ||
archiver | ||
files | ||
adopt_test.go | ||
adopt.go | ||
avatar_test.go | ||
avatar.go | ||
branch.go | ||
cache.go | ||
check.go | ||
fork_test.go | ||
fork.go | ||
hooks.go | ||
main_test.go | ||
push.go | ||
repository.go | ||
template.go | ||
transfer_test.go | ||
transfer.go |