diff options
author | James Moger <james.moger@gitblit.com> | 2015-09-18 11:23:42 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2015-09-18 11:23:42 -0400 |
commit | a592329a82d0a85d33abcc63f08df20b79e8e4f7 (patch) | |
tree | 2f96ec8cd71727634dd15c8da914ccdccabc9bdf /src/main/java/com/gitblit/models | |
parent | 9bd0f28be7b974988630ec8facc8bcfd748afc9d (diff) | |
download | gitblit-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.java | 6 |
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);
}
|