Debian Codegraph @

repository_unix_test.go

raw
1 // +build !plan9,!windows
2
3 package git
4
5 import "fmt"
6
7 // preReceiveHook returns the bytes of a pre-receive hook script
8 // that prints m before exiting successfully
9 func preReceiveHook(m string) []byte {
10 return []byte(fmt.Sprintf("#!/bin/sh\nprintf '%s'\n", m))
11 }