This commit is contained in:
Liang Ding
2023-05-05 23:33:01 +08:00
parent 1702b7cf96
commit 1731d2b6ef

View File

@@ -431,10 +431,10 @@ func GetPackageREADME(repoURL, repoHash, packageType string) (ret string) {
return
}
fullRepoURLHash := "https://github.com/" + repoURLHash
url := strings.TrimPrefix(repoURLHash, "https://github.com/")
var repo *StageRepo
for _, r := range stageIndex.Repos {
if r.URL == fullRepoURLHash {
if r.URL == url {
repo = r
break
}