Skip to content

Commit 96daf2c

Browse files
author
Aaron Schlesinger
committed
fix(pkg/git/git.go): re-add old env vars
only leave out the pull policy env vars
1 parent c816f3b commit 96daf2c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pkg/git/git.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ strip_remote_prefix() {
3131
stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
3232
}
3333
34-
GIT_HOME={{.GitHome}} boot git-receive | strip_remote_prefix
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+
boot git-receive | strip_remote_prefix
3542
`
3643

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

0 commit comments

Comments
 (0)