summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-06-01 04:06:31 +0100
committerGitHub <noreply@github.com>2022-06-01 04:06:31 +0100
commitd002e3da008ec6945a405e4f14941bd42a341494 (patch)
treed367f8b51891aa224e325ca645106d5988885fcd
parent730b9a5a624651e4821a043fe3f596c92be2df01 (diff)
downloadgitea-d002e3da008ec6945a405e4f14941bd42a341494.tar.gz
gitea-d002e3da008ec6945a405e4f14941bd42a341494.zip
Fix spelling mistake in ProcReceive (#19853)
There was a spelling mistake in the ProcReceive handler. This PR fixes this.
-rw-r--r--routers/private/hook_proc_receive.go2
-rw-r--r--services/agit/agit.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go
index e427a55c56..81dbc1fd18 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 2889236181..cc520dbc76 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