diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9eb52dd..570b005 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,8 @@ clone: tags: - shell before_script: - - git config --local --list | grep -iE '^url' | sed -E 's,=.*$,,gm' | xargs -d $'\n' -I '{}' git config --local --unset '{}' + - varia=$(git config --local --list | grep -iE '^url') + - [[ -z $varia ]] && (echo $varia | sed -E 's,=.*$,,gm' | xargs -d $'\n' -I '{}' git config --local --unset '{}') - set -x - git config --local url."https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/".insteadOf "git@git.tablet.sh:" ##- git config --local submodule.content.url "https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/the-btfash-foundation/tablet.sh"