diff options
| -rw-r--r-- | git-shell-commands.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/git-shell-commands.go b/git-shell-commands.go index 2311713..720fb69 100644 --- a/git-shell-commands.go +++ b/git-shell-commands.go @@ -39,19 +39,6 @@ func createRepo(name string) error { if err := git.Run(); err != nil { return err } - hook := filepath.Join(dir, "hooks/post-update") - fmt.Fprintf(os.Stderr, "echo exec git update-server-info > %s && chmod +x %[1]s\n", hook) - f, err := os.OpenFile(hook, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0755) - if err != nil { - return err - } - defer f.Close() - if _, err := io.WriteString(f, "exec git update-server-info\n"); err != nil { - return err - } - if err := f.Close(); err != nil { - return err - } return nil } |
