summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-05-07 02:21:34 +0100
committerGitHub <noreply@github.com>2021-05-07 09:21:34 +0800
commit114c85e6ef96b318dc5938863d29980273a7fdc1 (patch)
tree9a59a434f2afe1b3d14a382705c15bd1f18e22c8 /modules
parentedb838997c41af7704aba4dbffeee608ffd18d3c (diff)
downloadgitea-114c85e6ef96b318dc5938863d29980273a7fdc1.tar.gz
gitea-114c85e6ef96b318dc5938863d29980273a7fdc1.zip
Fix bug where repositories appear unadopted (#15757)
Fix bug where repositories with capital letters in their names appear unadopted. Fix #15755 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/repository/adopt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/adopt.go b/modules/repository/adopt.go
index 0302119630..a37f770496 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