diff --git a/services/repository/repository.go b/services/repository/repository.go index a7a3a39b1..1b3a2ecad 100644 --- a/services/repository/repository.go +++ b/services/repository/repository.go @@ -119,8 +119,9 @@ func GetRecommendRepoFromPromote(filename string) ([]map[string]interface{}, err //resultRepo := make([]*models.Repository, 0) for _, repoName := range result { - log.Info("repoName=" + repoName) + tmpIndex1 := strings.Index(repoName, "##") + log.Info("repoName=" + repoName + " tmpIndex1=" + fmt.Sprint(tmpIndex1) + " len(repoName)=" + fmt.Sprint(len(repoName))) repoLabel := "" if tmpIndex1 != -1 { repoName := strings.Trim(repoName[0:tmpIndex1], " ")