Monorepo for Tangled tangled.org

hook: place notify-hook in post-receive

Signed-off-by: oppiliappan <me@oppi.li>

Changed files
+2 -2
hook
+2 -2
hook/setup.go
··· 103 103 return fmt.Errorf("%s: %w", path, ErrNoGitRepo) 104 104 } 105 105 106 - preReceiveD := filepath.Join(path, "hooks", "pre-receive.d") 106 + preReceiveD := filepath.Join(path, "hooks", "post-receive.d") 107 107 if err := os.MkdirAll(preReceiveD, 0755); err != nil { 108 108 return fmt.Errorf("%s: %w", preReceiveD, ErrCreatingHookDir) 109 109 } ··· 113 113 return fmt.Errorf("%s: %w", notify, ErrCreatingHook) 114 114 } 115 115 116 - delegate := filepath.Join(path, "hooks", "pre-receive") 116 + delegate := filepath.Join(path, "hooks", "post-receive") 117 117 if err := mkDelegate(delegate); err != nil { 118 118 return fmt.Errorf("%s: %w", delegate, ErrCreatingDelegate) 119 119 }