diff options
Diffstat (limited to 'git-shell-commands.go')
| -rw-r--r-- | git-shell-commands.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |
