Files
go-git/repository_windows_test.go
2017-09-01 09:17:23 -05:00

10 lines
267 B
Go

package git
import "fmt"
// preReceiveHook returns the bytes of a pre-receive hook script
// that prints m before exiting successfully
func preReceiveHook(m string) []byte {
return []byte(fmt.Sprintf("#!C:/Program\\ Files/Git/usr/bin/sh.exe\nprintf '%s'\n", m))
}