mirror of
https://github.com/Luzifer/ansible-role-version.git
synced 2024-12-24 11:31:21 +00:00
12 lines
264 B
Go
12 lines
264 B
Go
|
// +build !plan9,!windows
|
||
|
|
||
|
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("#!/bin/sh\nprintf '%s'\n", m))
|
||
|
}
|