forked from gitea/gitea
Fix bug where repositories with capital letters in their names appear unadopted. Fix #15755 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
717b313c34
commit
2c2a30d6bb
|
@ -228,7 +228,7 @@ func ListUnadoptedRepositories(query string, opts *models.ListOptions) ([]string
|
||||||
found := false
|
found := false
|
||||||
repoLoop:
|
repoLoop:
|
||||||
for i, repo := range repos {
|
for i, repo := range repos {
|
||||||
if repo.Name == name {
|
if repo.LowerName == name {
|
||||||
found = true
|
found = true
|
||||||
repos = append(repos[:i], repos[i+1:]...)
|
repos = append(repos[:i], repos[i+1:]...)
|
||||||
break repoLoop
|
break repoLoop
|
||||||
|
|
Loading…
Reference in New Issue