diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go index e427a55c561..81dbc1fd189 100644 --- a/routers/private/hook_proc_receive.go +++ b/routers/private/hook_proc_receive.go @@ -23,7 +23,7 @@ func HookProcReceive(ctx *gitea_context.PrivateContext) { return } - results := agit.ProcRecive(ctx, opts) + results := agit.ProcReceive(ctx, opts) if ctx.Written() { return } diff --git a/services/agit/agit.go b/services/agit/agit.go index 28892361817..cc520dbc762 100644 --- a/services/agit/agit.go +++ b/services/agit/agit.go @@ -20,8 +20,8 @@ import ( pull_service "code.gitea.io/gitea/services/pull" ) -// ProcRecive handle proc receive work -func ProcRecive(ctx *context.PrivateContext, opts *private.HookOptions) []private.HookProcReceiveRefResult { +// ProcReceive handle proc receive work +func ProcReceive(ctx *context.PrivateContext, opts *private.HookOptions) []private.HookProcReceiveRefResult { // TODO: Add more options? var ( topicBranch string