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