diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-02 20:44:32 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-02 20:45:39 -0700 |
| commit | c05dbd42b0c4c0b609037c35bb80e9c4ae7f6341 (patch) | |
| tree | 95532c69c357d96031767a820012da5dc899ddad /git-shell-commands.go | |
| parent | 6b7b2977e4569f59da85a0843ead8546c13fe428 (diff) | |
| download | git-shell-commands-c05dbd42b0c4c0b609037c35bb80e9c4ae7f6341.tar.zst | |
Remove hook logic
Now we have cgit
Diffstat (limited to 'git-shell-commands.go')
| -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 } |
