1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

Add safe.directory git config to fix the issue reported on https://github.com/tektoncd/pipeline/issues/4966 and fix the tests

This commit is contained in:
jhonis 2022-10-17 19:20:53 -03:00 committed by tekton-robot
parent 3af2ad454d
commit 431e65f2fa

View File

@ -173,7 +173,8 @@ spec:
if [ "${PARAM_VERBOSE}" = "true" ] ; then
set -x
fi
git config --global --add safe.directory "${CHECKOUT_DIR}"
if [ "${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}" = "true" ] ; then
cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials" "${PARAM_USER_HOME}/.git-credentials"