1packagegit23import"fmt"45// preReceiveHook returns the bytes of a pre-receive hook script6// that prints m before exiting successfully7funcpreReceiveHook(mstring)[]byte{8return[]byte(fmt.Sprintf("#!C:/Program\\ Files/Git/usr/bin/sh.exe\nprintf '%s'\n",m))9}