diff --git a/entrypoint.sh b/entrypoint.sh index 953f783..95f352a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,13 +21,13 @@ urlencode() ( DEFAULT_POLL_TIMEOUT=10 POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT} +sh -c "git config --global --add safe.directory /github/workspace" git checkout "${GITHUB_REF:11}" branch="$(git symbolic-ref --short HEAD)" branch_uri="$(urlencode ${branch})" sh -c "git config --global credential.username $GITLAB_USERNAME" -sh -c "git config --global --add safe.directory /github/workspace" sh -c "git config --global core.askPass /cred-helper.sh" sh -c "git config --global credential.helper cache" sh -c "git remote add mirror $*"