Skip to content

Commit 3ab8e62

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(run.go): remove leftover comments
from the shell script that was ported
1 parent c0d8dc0 commit 3ab8e62

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

pkg/gitreceive/run.go

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,6 @@ import (
1010
"github.com/deis/builder/pkg/log"
1111
)
1212

13-
// #!/bin/bash
14-
// strip_remote_prefix() {
15-
// stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
16-
// }
17-
//
18-
// while read oldrev newrev refname
19-
// do
20-
// LOCKFILE="/tmp/$RECEIVE_REPO.lock"
21-
// if ( set -o noclobber; echo "$$" > "$LOCKFILE" ) 2> /dev/null; then
22-
// trap 'rm -f "$LOCKFILE"; exit 1' INT TERM EXIT
23-
//
24-
// # check for authorization on this repo
25-
// {{.GitHome}}/receiver "$RECEIVE_REPO" "$newrev" "$RECEIVE_USER" "$RECEIVE_FINGERPRINT"
26-
// rc=$?
27-
// if [[ $rc != 0 ]] ; then
28-
// echo " ERROR: failed on rev $newrev - push denied"
29-
// exit $rc
30-
// fi
31-
// # builder assumes that we are running this script from $GITHOME
32-
// cd {{.GitHome}}
33-
// # if we're processing a receive-pack on an existing repo, run a build
34-
// if [[ $SSH_ORIGINAL_COMMAND == git-receive-pack* ]]; then
35-
// {{.GitHome}}/builder "$RECEIVE_USER" "$RECEIVE_REPO" "$newrev" 2>&1 | strip_remote_prefix
36-
// fi
37-
//
38-
// rm -f "$LOCKFILE"
39-
// trap - INT TERM EXIT
40-
// else
41-
// echo "Another git push is ongoing. Aborting..."
42-
// exit 1
43-
// fi
44-
// done
45-
4613
func readLine(line string) (string, string, string, error) {
4714
spl := strings.Split(line, " ")
4815
if len(spl) != 3 {

0 commit comments

Comments
 (0)