Skip to content

Commit

Permalink
Fix bug where repositories appear unadopted (#15757) (#15767)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people committed May 7, 2021
1 parent 717b313 commit 2c2a30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/repository/adopt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c2a30d

Please sign in to comment.