diff options
author | James Moger <james.moger@gitblit.com> | 2015-09-18 14:02:52 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2015-09-18 14:02:52 -0400 |
commit | 4e94467ee0deefaf38bb9dea48cacccb375481a3 (patch) | |
tree | 77047a662b8f5cd67c47f1275f638f119bcfbee9 | |
parent | a592329a82d0a85d33abcc63f08df20b79e8e4f7 (diff) | |
download | gitblit-4e94467ee0deefaf38bb9dea48cacccb375481a3.tar.gz gitblit-4e94467ee0deefaf38bb9dea48cacccb375481a3.zip |
Simplify RefModel dates
-rw-r--r-- | src/main/java/com/gitblit/models/RefModel.java | 7 |
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;
|