diff options
author | James Moger <james.moger@gitblit.com> | 2013-06-27 11:41:05 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-06-27 11:41:05 -0400 |
commit | 8dc3d07ff76a78f4cb899141288680e789004ff3 (patch) | |
tree | 000766ebf83a12acbc42921ca8d905ef95be9947 | |
parent | 83e2a626247b44b3fbd758816a75096c96539ef9 (diff) | |
download | gitblit-8dc3d07ff76a78f4cb899141288680e789004ff3.tar.gz gitblit-8dc3d07ff76a78f4cb899141288680e789004ff3.zip |
Fixed reflog author
-rw-r--r-- | src/main/java/com/gitblit/models/RefLogEntry.java | 3 |
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();
}
|