diff --git a/task/git-clone/0.9/git-clone.yaml b/task/git-clone/0.9/git-clone.yaml index 1606d520..84cb636c 100644 --- a/task/git-clone/0.9/git-clone.yaml +++ b/task/git-clone/0.9/git-clone.yaml @@ -174,8 +174,6 @@ spec: set -x fi - git config --global --add safe.directory "${WORKSPACE_OUTPUT_PATH}" - if [ "${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}" = "true" ] ; then cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials" "${PARAM_USER_HOME}/.git-credentials" cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig" "${PARAM_USER_HOME}/.gitconfig" @@ -220,6 +218,7 @@ spec: test -z "${PARAM_HTTPS_PROXY}" || export HTTPS_PROXY="${PARAM_HTTPS_PROXY}" test -z "${PARAM_NO_PROXY}" || export NO_PROXY="${PARAM_NO_PROXY}" + git config --global --add safe.directory "${WORKSPACE_OUTPUT_PATH}" /ko-app/git-init \ -url="${PARAM_URL}" \ -revision="${PARAM_REVISION}" \