CI runs the upgrade test by building master. To do so, it runs
git checkout master
git pull --ff-only # may be stale
But it could happen that master was already checked out in .git and recover by the cache, and thus the branch will be local only (or whatever the cache had) and git pull will fail.
CI runs the upgrade test by building
master
. To do so, it runsBut it could happen that
master
was already checked out in.git
and recover by the cache, and thus the branch will be local only (or whatever the cache had) andgit pull
will fail.Instead run
This change is