Skip to content

Commit c816f3b

Browse files
author
Aaron Schlesinger
committed
fix(pkg/git/git.go): fix blank image pull policy
also remove all mirrored environment variables in the git post-receive hook script. the subprocess will pick them all up anyway
1 parent 8ede6fd commit c816f3b

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

pkg/git/git.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,7 @@ strip_remote_prefix() {
3131
stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
3232
}
3333
34-
GIT_HOME={{.GitHome}} \
35-
SSH_CONNECTION="$SSH_CONNECTION" \
36-
SSH_ORIGINAL_COMMAND="$SSH_ORIGINAL_COMMAND" \
37-
REPOSITORY="$RECEIVE_REPO" \
38-
USERNAME="$RECEIVE_USER" \
39-
FINGERPRINT="$RECEIVE_FINGERPRINT" \
40-
POD_NAMESPACE="$POD_NAMESPACE" \
41-
SLUG_BUILDER_IMAGE_PULL_POLICY="$SLUG_BUILDER_IMAGE_PULL_POLICY" \
42-
DOCKER_BUILDER_IMAGE_PULL_POLICY="$DOCKER_BUILDER_IMAGE_PULL_POLICY" \
43-
boot git-receive | strip_remote_prefix
34+
GIT_HOME={{.GitHome}} boot git-receive | strip_remote_prefix
4435
`
4536

4637
var preReceiveHookTpl = template.Must(template.New("hooks").Parse(preReceiveHookTplStr))

0 commit comments

Comments
 (0)