mirror of
https://github.com/Luzifer/ansible-role-version.git
synced 2024-12-23 11:01:20 +00:00
9 lines
267 B
Go
9 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))
|
|
}
|