Skip to content
Snippets Groups Projects
Commit fc1f5329 authored by Juraj Paluba's avatar Juraj Paluba
Browse files

Merge branch '25-configure-git-access-token-to-authenticate-git-operations' into 'master'

Resolve "Configure git access token to authenticate git operations"

Closes #25

See merge request muni-kypo-crp/backend-python/kypo-ansible-runner!26
parents b62c3424 b90d272c
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@ if [ $? != 0 ]; then
fi
PREPARE_ANSWERS_PY=$(realpath "manage_answers.py")
git config --global credential.helper 'store --file=/app/.git-credentials'
# Check if git repo is reachable.
git ls-remote $REPO_URL -q
if [ $? != 0 ]; then
......@@ -54,7 +56,7 @@ if [ $? != 0 ]; then
exit 1
fi
git clone $REPO_URL ansible_repo || exit 1
git clone $REPO_URL ansible_repo > /dev/null 2>&1 || exit 1
cd ansible_repo || exit 1
if [ $REVISION ]; then
git checkout $REVISION || exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment