Skip to content

Commit 8ee3bc5

Browse files
arschlesAaron Schlesinger
authored andcommitted
ref(git.go): make the pre receive hook constant
note that this commit officially removes the ability to change the pre-receive hook
1 parent c125201 commit 8ee3bc5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pkg/git/git.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ import (
2020
"golang.org/x/crypto/ssh"
2121
)
2222

23-
// PrereceiveHookTpl is a pre-receive hook.
24-
//
25-
// This is overridable. The following template variables are passed into it:
23+
// prereceiveHookTpl is the template for a pre-receive hook. The following template variables are passed into it:
2624
//
2725
// .GitHome: the path to Git's home directory.
28-
var prereceiveHookTpl = `#!/bin/bash
26+
const prereceiveHookTpl = `#!/bin/bash
2927
strip_remote_prefix() {
3028
stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
3129
}

0 commit comments

Comments
 (0)