From f230acc7a973ed8bca4eb0b4b0a7866573328390 Mon Sep 17 00:00:00 2001 From: tjh Date: Sun, 14 Dec 2025 15:13:06 +0000 Subject: [PATCH] knotserver,hook: fix post-receive hook typo Change-Id: kkqxrurstmzsvtzzokpslnzoouqlowuy Signed-off-by: tjh --- hook/hook.go | 8 ++++---- hook/setup.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hook/hook.go b/hook/hook.go index c53fdfbd..12f58846 100644 --- a/hook/hook.go +++ b/hook/hook.go @@ -48,15 +48,15 @@ func Command() *cli.Command { }, Commands: []*cli.Command{ { - Name: "post-recieve", - Usage: "sends a post-recieve hook to the knot (waits for stdin)", - Action: postRecieve, + Name: "post-receive", + Usage: "sends a post-receive hook to the knot (waits for stdin)", + Action: postReceive, }, }, } } -func postRecieve(ctx context.Context, cmd *cli.Command) error { +func postReceive(ctx context.Context, cmd *cli.Command) error { gitDir := cmd.String("git-dir") userDid := cmd.String("user-did") userHandle := cmd.String("user-handle") diff --git a/hook/setup.go b/hook/setup.go index 29495605..05d4a4c7 100644 --- a/hook/setup.go +++ b/hook/setup.go @@ -138,7 +138,7 @@ for ((i=0; i