If I understand correctly,
We optimize checkout significantly and only guarantee that the current branch checkout matches the branch that should be built.
you could run git fetch && git merge-base origin/master HEAD
to get your desired behavior
thanks!
RK