`cache-repo` is failing
Job #1128261098 failed for 226c4abb:
$ if [ -n "$ENABLE_SHALLOW_REPO_CACHING" ]; then cd .. && rm -rf $CI_PROJECT_NAME; today=$(date +%Y-%m-%d); year=$(date +%Y); last_year=`expr $year - 1`; one_year_ago=$(echo $today | sed "s/$year/$last_year/"); echo "Cloning $CI_REPOSITORY_URL into $CI_PROJECT_NAME with commits from $one_year_ago."; time git clone --progress --no-checkout --shallow-since=$one_year_ago $CI_REPOSITORY_URL $CI_PROJECT_NAME; cd $CI_PROJECT_NAME; time git repack -d; echo "Archiving $CI_PROJECT_NAME into /tmp/$SHALLOW_CLONE_TAR_FILENAME."; time git remote rm origin time tar cf /tmp/$SHALLOW_CLONE_TAR_FILENAME .; echo "GZipping /tmp/$SHALLOW_CLONE_TAR_FILENAME."; time gzip /tmp/$SHALLOW_CLONE_TAR_FILENAME; [ -z "$CI_REPO_CACHE_CREDENTIALS" ] || (echo "Uploading /tmp/$SHALLOW_CLONE_TAR_FILENAME.gz to GCloud." && time gsutil cp /tmp/$SHALLOW_CLONE_TAR_FILENAME.gz gs://gitlab-ci-git-repo-cache/project-$CI_PROJECT_ID/$SHALLOW_CLONE_TAR_FILENAME.gz); fi
Cloning https://gitlab-ci-token:[MASKED]@gitlab.com/gitlab-org/gitlab.git into gitlab with commits from 2020-03-25.
Cloning into 'gitlab'...
remote: Enumerating objects: 810037, done.
remote: Counting objects: 100% (810037/810037), done.
remote: Compressing objects: 100% (297363/297363), done.
remote: Total 810037 (delta 600723), reused 686776 (delta 496598), pack-reused 0
Receiving objects: 100% (810037/810037), 401.20 MiB | 25.83 MiB/s, done.
Resolving deltas: 100% (600723/600723), done.
Checking connectivity: 810037, done.
real 2m28.362s
user 1m58.225s
sys 0m22.795s
Nothing new to pack.
Archiving gitlab into /tmp/gitlab-master-shallow.tar.
real 0m0.618s
user 0m0.559s
sys 0m0.059s
usage: git remote remove <name>
real 0m0.002s
user 0m0.000s
sys 0m0.001s
We need to add ;
at the end of the git remote rm origin
line. That was introduced by !57456 (diffs).
FYI @stanhu