From 93295a58ea02a8eb68dcaa5a283d057bd1749db1 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 9 Jul 2026 17:58:21 -0700 Subject: Activate hook --- git-shell-commands.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'git-shell-commands.go') diff --git a/git-shell-commands.go b/git-shell-commands.go index 0e9ea44..d331ef5 100644 --- a/git-shell-commands.go +++ b/git-shell-commands.go @@ -54,6 +54,12 @@ Create a new git repo named REPO. if err := git.Run(); err != nil { return err } + hook := filepath.Join(dir, "hooks/post-update") + hookSample := hook + ".sample" + fmt.Printf("mv %s %s\n", hookSample, hook) + if err := os.Rename(hookSample, hook); err != nil { + return err + } return nil } -- cgit v1.3.1