Skip to content

Commit d2bb167

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(server.go): remove unused code
1 parent 694082b commit d2bb167

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

pkg/sshd/server.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@ const (
3030
ServerConfig string = "ssh.ServerConfig"
3131
)
3232

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-
4633
// Serve starts a native SSH server.
4734
//
4835
// The general design of the server is that it acts as a main server for

0 commit comments

Comments
 (0)