summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-09-18 14:02:52 -0400
committerJames Moger <james.moger@gitblit.com>2015-09-18 14:02:52 -0400
commit4e94467ee0deefaf38bb9dea48cacccb375481a3 (patch)
tree77047a662b8f5cd67c47f1275f638f119bcfbee9
parenta592329a82d0a85d33abcc63f08df20b79e8e4f7 (diff)
downloadgitblit-4e94467ee0deefaf38bb9dea48cacccb375481a3.tar.gz
gitblit-4e94467ee0deefaf38bb9dea48cacccb375481a3.zip
Simplify RefModel dates
-rw-r--r--src/main/java/com/gitblit/models/RefModel.java7
1 files changed, 1 insertions, 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<RefModel> {
}
} 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;