Skip to content

Commit

Permalink
Fix bug where repositories appear unadopted (go-gitea#15757)
Browse files Browse the repository at this point in the history
Fix bug where repositories with capital letters in their names appear unadopted.

Fix go-gitea#15755

Co-authored-by: Lunny Xiao <[email protected]>
  • Loading branch information
2 people authored and AbdulrhmnGhanem committed Aug 10, 2021
1 parent 6125ca3 commit 7920263
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 7920263

Please sign in to comment.