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

fix hook url

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-24 19:39:54 -05:00
parent 46cd9b7379
commit 1fa9298ad2
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -121,7 +121,7 @@ func HookProcReceive(ctx context.Context, ownerName, repoName string, groupID in
// SetDefaultBranch will set the default branch to the provided branch for the provided repository
func SetDefaultBranch(ctx context.Context, ownerName, repoName string, groupID int64, branch string) ResponseExtra {
reqURL := setting.LocalURL + fmt.Sprintf("api/internal/hook/set-default-branch/%s/%s/%s%s",
reqURL := setting.LocalURL + fmt.Sprintf("api/internal/hook/set-default-branch/%s/%s%s/%s",
url.PathEscape(ownerName),
genGroupSegment(groupID),
url.PathEscape(repoName),