0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-03 19:03:05 +02:00

fix repo url parsing (again)

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-23 17:46:43 -05:00
parent cc334eff43
commit 1e2c2dc058
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -140,9 +140,10 @@ func ParseRepositoryURL(ctx context.Context, repoURL string) (*RepositoryURL, er
if len(fields) >= 4 {
ret.RemainingPath = "/" + fields[3]
}
} else {
ret.RepoName = strings.TrimSuffix(fields[1], ".git")
}
}
return
}
switch parsed.URL.Scheme {