summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/models
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-09-18 11:23:42 -0400
committerJames Moger <james.moger@gitblit.com>2015-09-18 11:23:42 -0400
commita592329a82d0a85d33abcc63f08df20b79e8e4f7 (patch)
tree2f96ec8cd71727634dd15c8da914ccdccabc9bdf /src/main/java/com/gitblit/models
parent9bd0f28be7b974988630ec8facc8bcfd748afc9d (diff)
downloadgitblit-a592329a82d0a85d33abcc63f08df20b79e8e4f7.tar.gz
gitblit-a592329a82d0a85d33abcc63f08df20b79e8e4f7.zip
Use author date to be consistent with other tools (fixes #919)
Diffstat (limited to 'src/main/java/com/gitblit/models')
-rw-r--r--src/main/java/com/gitblit/models/RefModel.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/models/RefModel.java b/src/main/java/com/gitblit/models/RefModel.java
index 02ba1302..4d9a0c65 100644
--- a/src/main/java/com/gitblit/models/RefModel.java
+++ b/src/main/java/com/gitblit/models/RefModel.java
@@ -58,9 +58,9 @@ public class RefModel implements Serializable, Comparable<RefModel> {
}
} else if (referencedObject instanceof RevCommit) {
RevCommit commit = (RevCommit) referencedObject;
- PersonIdent committer = commit.getCommitterIdent();
- if (committer != null) {
- date = committer.getWhen();
+ PersonIdent author = commit.getAuthorIdent();
+ if (author != null) {
+ date = author.getWhen();
} else {
date = JGitUtils.getCommitDate(commit);
}