|
|
@@ -575,8 +575,8 @@ func RecommendRepoFromPromote(ctx *context.Context) { |
|
|
|
if tmpIndex == -1 { |
|
|
|
log.Info("error repo name format.") |
|
|
|
} else { |
|
|
|
ownerName := repoName[0:tmpIndex] |
|
|
|
repoName := repoName[tmpIndex+1:] |
|
|
|
ownerName := strings.Trim(repoName[0:tmpIndex], " ") |
|
|
|
repoName := strings.Trim(repoName[tmpIndex+1:], " ") |
|
|
|
repo, err := models.GetRepositoryByOwnerAndName(ownerName, repoName) |
|
|
|
if err == nil { |
|
|
|
resultRepo[i] = repo |
|
|
|