diff options
author | Ori Rawlings <orirawlings@gmail.com> | 2017-08-23 21:37:49 -0500 |
---|---|---|
committer | Ori Rawlings <orirawlings@gmail.com> | 2017-09-01 09:17:23 -0500 |
commit | 76efca13092ba245caf15f232f467e68fa1f73ed (patch) | |
tree | e94ed3536e5af8d9201e83de9a7011ab5ac37dad /repository_windows_test.go | |
parent | 3ca370277427c5d508f0dedacbd559523a305121 (diff) | |
download | go-git-76efca13092ba245caf15f232f467e68fa1f73ed.tar.gz |
Add sideband support for push
Diffstat (limited to 'repository_windows_test.go')
-rw-r--r-- | repository_windows_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/repository_windows_test.go b/repository_windows_test.go new file mode 100644 index 0000000..bec0acd --- /dev/null +++ b/repository_windows_test.go @@ -0,0 +1,9 @@ +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)) +} |