Fix git path compare of meta to pull request #31
@@ -575,8 +575,10 @@ func ProcessPullRequest(gitea common.Gitea, org, repo string, id int64) error {
|
||||
} else {
|
||||
metaUrl.RawQuery = ""
|
||||
metaUrl.Fragment = ""
|
||||
metaUrl.Path = strings.TrimSuffix(metaUrl.Path, ".git")
|
||||
targetPRSyncUrl.RawQuery = ""
|
||||
targetPRSyncUrl.Fragment = ""
|
||||
targetPRSyncUrl.Path = strings.TrimSuffix(targetPRSyncUrl.Path, ".git")
|
||||
|
||||
if metaUrl.String() != targetPRSyncUrl.String() {
|
||||
common.LogError("SCMSYNC in meta", meta.ScmSync, "!= PR CloneURL from Gitea", pr.Base.Repo.CloneURL, ". Skipping staging")
|
||||
|
||||
Reference in New Issue
Block a user