summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-06-27 11:41:05 -0400
committerJames Moger <james.moger@gitblit.com>2013-06-27 11:41:05 -0400
commit8dc3d07ff76a78f4cb899141288680e789004ff3 (patch)
tree000766ebf83a12acbc42921ca8d905ef95be9947
parent83e2a626247b44b3fbd758816a75096c96539ef9 (diff)
downloadgitblit-8dc3d07ff76a78f4cb899141288680e789004ff3.tar.gz
gitblit-8dc3d07ff76a78f4cb899141288680e789004ff3.zip
Fixed reflog author
-rw-r--r--src/main/java/com/gitblit/models/RefLogEntry.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/models/RefLogEntry.java b/src/main/java/com/gitblit/models/RefLogEntry.java
index 79e8a2ca..abfc56b1 100644
--- a/src/main/java/com/gitblit/models/RefLogEntry.java
+++ b/src/main/java/com/gitblit/models/RefLogEntry.java
@@ -330,6 +330,9 @@ public class RefLogEntry implements Serializable, Comparable<RefLogEntry> {
}
public PersonIdent getAuthorIdent() {
+ if (getAuthorCount() == 1) {
+ return getCommits().get(0).getAuthorIdent();
+ }
return getCommitterIdent();
}