Cover the case of split repository heads.