diff --git a/pkg/cmd/repo/list/http.go b/pkg/cmd/repo/list/http.go index 1dbe372e4..ef574b43c 100644 --- a/pkg/cmd/repo/list/http.go +++ b/pkg/cmd/repo/list/http.go @@ -158,7 +158,7 @@ pagination: listResult.TotalCount = result.Search.RepositoryCount for _, repo := range result.Search.Nodes { - if listResult.Owner == "" { + if listResult.Owner == "" && repo.NameWithOwner != "" { idx := strings.IndexRune(repo.NameWithOwner, '/') listResult.Owner = repo.NameWithOwner[:idx] }