checkout the branch before pulling it when updating