From 4e94467ee0deefaf38bb9dea48cacccb375481a3 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 18 Sep 2015 14:02:52 -0400 Subject: [PATCH] Simplify RefModel dates --- src/main/java/com/gitblit/models/RefModel.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/gitblit/models/RefModel.java b/src/main/java/com/gitblit/models/RefModel.java index 4d9a0c65..d20c2dc6 100644 --- a/src/main/java/com/gitblit/models/RefModel.java +++ b/src/main/java/com/gitblit/models/RefModel.java @@ -58,12 +58,7 @@ public class RefModel implements Serializable, Comparable { } } else if (referencedObject instanceof RevCommit) { RevCommit commit = (RevCommit) referencedObject; - PersonIdent author = commit.getAuthorIdent(); - if (author != null) { - date = author.getWhen(); - } else { - date = JGitUtils.getCommitDate(commit); - } + date = JGitUtils.getAuthorDate(commit); } } return date; -- 2.39.5