Clone should have succeeded.
if ( "$CIRRUS_PR" == "" || ! $?CIRRUS_PR ) then
git clone --recursive --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR}
git reset --hard $CIRRUS_CHANGE_IN_REPO
else
git clone --recursive https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR}
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
git reset --hard $CIRRUS_CHANGE_IN_REPO
fi
/tmp/scriptsc64981855ad8681d0d86d1e91e001679.sh: 106: not found
/tmp/scriptsc64981855ad8681d0d86d1e91e001679.sh: 127CIRRUS_PR: not found
Cloning into '/tmp/go/src/github.com/awnumar/memguard'...
fatal: Remote branch pull/106 not found in upstream origin
Exit status: 128
The issue is that Cirrus still uses shell to run scripts and not tcsh. Fixed in https://github.com/awnumar/memguard/pull/107
Thank you very much for looking into this!
@fkorotkov This now fails on master. https://cirrus-ci.com/task/6307419716583424
@awnumar seems something weird with how the script is evaluated. Seems you can completely get rig of it though: https://github.com/awnumar/memguard/pull/108
Interesting. The builds seem to be faster now too which is a plus :) Thank you