Fix incantation to checkout matching branches in .gitlab-ci.yml
The current incantation does not actually work: we first clone HEAD with --depth=1
, which implies --single-branch
. This this will usually only configure master to have a remote branch. The subsequent fetch of the matching branch will not set up a remote branch, but only fetch to FETCH_HEAD, and then the checkout of the matching branch will fail.