From b08135c89e1782665b4cb669d4725a33b82a8ab2 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 30 May 2025 15:38:33 +0100 Subject: [PATCH] hook: place notify-hook in post-receive Signed-off-by: oppiliappan --- hook/setup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hook/setup.go b/hook/setup.go index 1961b63..7316ab6 100644 --- a/hook/setup.go +++ b/hook/setup.go @@ -103,7 +103,7 @@ func setup(config *config, path string) error { return fmt.Errorf("%s: %w", path, ErrNoGitRepo) } - preReceiveD := filepath.Join(path, "hooks", "pre-receive.d") + preReceiveD := filepath.Join(path, "hooks", "post-receive.d") if err := os.MkdirAll(preReceiveD, 0755); err != nil { return fmt.Errorf("%s: %w", preReceiveD, ErrCreatingHookDir) } @@ -113,7 +113,7 @@ func setup(config *config, path string) error { return fmt.Errorf("%s: %w", notify, ErrCreatingHook) } - delegate := filepath.Join(path, "hooks", "pre-receive") + delegate := filepath.Join(path, "hooks", "post-receive") if err := mkDelegate(delegate); err != nil { return fmt.Errorf("%s: %w", delegate, ErrCreatingDelegate) } -- 2.51.2