Skip to content

Commit ba61100

Browse files
arschlesAaron Schlesinger
authored andcommitted
ref(git.go): make the pre receive hook template private
1 parent fdcf01d commit ba61100

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
// This is overridable. The following template variables are passed into it:
2626
//
2727
// .GitHome: the path to Git's home directory.
28-
var PrereceiveHookTpl = `#!/bin/bash
28+
var prereceiveHookTpl = `#!/bin/bash
2929
strip_remote_prefix() {
3030
stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
3131
}
@@ -213,7 +213,7 @@ func createRepo(c cookoo.Context, repoPath, gitHome string) (bool, error) {
213213
func prereceiveHook(vars map[string]string) ([]byte, error) {
214214
var out bytes.Buffer
215215
// We parse the template anew each receive in case it has changed.
216-
t, err := template.New("hooks").Parse(PrereceiveHookTpl)
216+
t, err := template.New("hooks").Parse(prereceiveHookTpl)
217217
if err != nil {
218218
return []byte{}, err
219219
}

0 commit comments

Comments
 (0)