Translation of the "i.e.": If we're on master or on a detached head (as we are when running via Jenkins), then we call ensure_current_master. If we're on any branch other than master, we don't checkout master or pull from origin master.