fork of go-git with some jj specific features
at v0.0.0 264 B view raw
1// +build !plan9,!windows 2 3package git 4 5import "fmt" 6 7// preReceiveHook returns the bytes of a pre-receive hook script 8// that prints m before exiting successfully 9func preReceiveHook(m string) []byte { 10 return []byte(fmt.Sprintf("#!/bin/sh\nprintf '%s'\n", m)) 11}