From 2c2a30d6bbd8ace2f713e66cf923a2071cc3d35c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 7 May 2021 17:07:39 +0200 Subject: [PATCH] Fix bug where repositories appear unadopted (#15757) (#15767) Fix bug where repositories with capital letters in their names appear unadopted. Fix #15755 Co-authored-by: zeripath Co-authored-by: Lunny Xiao --- modules/repository/adopt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/repository/adopt.go b/modules/repository/adopt.go index 030211963..a37f77049 100644 --- a/modules/repository/adopt.go +++ b/modules/repository/adopt.go @@ -228,7 +228,7 @@ func ListUnadoptedRepositories(query string, opts *models.ListOptions) ([]string found := false repoLoop: for i, repo := range repos { - if repo.Name == name { + if repo.LowerName == name { found = true repos = append(repos[:i], repos[i+1:]...) break repoLoop