We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 694082b commit d2bb167Copy full SHA for d2bb167
1 file changed
pkg/sshd/server.go
@@ -30,19 +30,6 @@ const (
30
ServerConfig string = "ssh.ServerConfig"
31
)
32
33
-// PrereceiveHookTpl is a pre-receive hook.
34
-const PrereceiveHookTpl = `#!/bin/bash
35
-strip_remote_prefix() {
36
- stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
37
-}
38
-
39
-echo "pre-receive hook START"
40
-set -eo pipefail; while read oldrev newrev refname; do
41
-[[ $refname = "refs/heads/master" ]] && git archive $newrev | {{.Receiver}} "$RECEIVE_REPO" "$newrev" | strip_remote_prefix
42
-done
43
-echo "pre-receive hook END"
44
-`
45
46
// Serve starts a native SSH server.
47
//
48
// The general design of the server is that it acts as a main server for
0 commit comments