aboutsummaryrefslogblamecommitdiffstats
path: root/repository_windows_test.go
blob: bec0acdd8fe45db709ba3cfbb34e7dad46716746 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                               
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))
}