forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

knotserver,hook: fix post-receive hook typo

Signed-off-by: tjh <x@tjh.dev>

Changed files
+5 -5
hook
+4 -4
hook/hook.go
···
},
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")
+1 -1
hook/setup.go
···
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)