Commits

Anonymous committed 0507c08

Fix git tags without binding to commit

  • Participants
  • Parent commits a0d2ce0

Comments (0)

Files changed (1)

src/org/opensolaris/opengrok/history/GitRepository.java

             }
         }
 
+        // Git can have tags not pointing to any commit, but tree instead
+        // Lets use Unix timestamp of 0 for such commits
+        if (date == null) {
+            date = new Date(0);
+        }
         TagEntry result = new GitTagEntry(hash, date, tags);
         return result;
     }