handles empty repositories