From 1fa9298ad23ea259f9b06bfb53515598d15cfdf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Mon, 24 Nov 2025 19:39:54 -0500 Subject: [PATCH] fix hook url --- modules/private/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/private/hook.go b/modules/private/hook.go index 0a65e0adf3..65146fef62 100644 --- a/modules/private/hook.go +++ b/modules/private/hook.go @@ -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),