Deal more gracefully with repos with no commits yet.