@@ -632,8 +632,13 @@ private void rebuildTagList(File directory) {
632
632
Map <RevCommit , String > commit2Tags = new HashMap <>();
633
633
for (Ref ref : refList ) {
634
634
String tagName = ref .getName ().replace ("refs/tags/" , "" );
635
- RevCommit commit = getCommit (repository , ref );
636
- commit2Tags .merge (commit , tagName , (oldValue , newValue ) -> oldValue + TAGS_SEPARATOR + newValue );
635
+ try {
636
+ RevCommit commit = getCommit (repository , ref );
637
+ commit2Tags .merge (commit , tagName , (oldValue , newValue ) -> oldValue + TAGS_SEPARATOR + newValue );
638
+ } catch (IOException e ) {
639
+ LOGGER .log (Level .FINEST ,
640
+ String .format ("cannot get tags for \" " + directory .getAbsolutePath () + "\" " ), e );
641
+ }
637
642
}
638
643
639
644
for (Map .Entry <RevCommit , String > entry : commit2Tags .entrySet ()) {
@@ -649,7 +654,7 @@ private void rebuildTagList(File directory) {
649
654
// In case of partial success, do not null-out tagList here.
650
655
}
651
656
652
- if (LOGGER .isLoggable (Level .FINEST )) {
657
+ if (LOGGER .isLoggable (Level .FINER )) {
653
658
LOGGER .log (Level .FINEST , "Read tags count={0} for {1}" ,
654
659
new Object [] {tagList .size (), directory });
655
660
}
0 commit comments