Ensure we are on a branch before pulling