Fix message rendering for repositories with multiple heads.