Skip to content

Commit 2c2a30d

Browse files
6543zeripathlunny
authored
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 <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 717b313 commit 2c2a30d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repository/adopt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func ListUnadoptedRepositories(query string, opts *models.ListOptions) ([]string
228228
found := false
229229
repoLoop:
230230
for i, repo := range repos {
231-
if repo.Name == name {
231+
if repo.LowerName == name {
232232
found = true
233233
repos = append(repos[:i], repos[i+1:]...)
234234
break repoLoop

0 commit comments

Comments
 (0)