diff --git a/hook/hook.go b/hook/hook.go --- a/hook/hook.go +++ b/hook/hook.go @@ -48,15 +48,15 @@ }, 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 --- a/hook/setup.go +++ b/hook/setup.go @@ -138,7 +138,7 @@ option_var="GIT_PUSH_OPTION_$i" push_options+=(-push-option "${!option_var}") done -%s hook -git-dir "$GIT_DIR" -user-did "$GIT_USER_DID" -user-handle "$GIT_USER_HANDLE" -internal-api "%s" "${push_options[@]}" post-recieve +%s hook -git-dir "$GIT_DIR" -user-did "$GIT_USER_DID" -user-handle "$GIT_USER_HANDLE" -internal-api "%s" "${push_options[@]}" post-receive `, executablePath, config.internalApi) return os.WriteFile(hookPath, []byte(hookContent), 0755)