]> source.dussan.org Git - gitblit.git/commitdiff
Fixed reflog author
authorJames Moger <james.moger@gitblit.com>
Thu, 27 Jun 2013 15:41:05 +0000 (11:41 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 27 Jun 2013 15:41:05 +0000 (11:41 -0400)
src/main/java/com/gitblit/models/RefLogEntry.java

index 79e8a2caa52b855b6e1dbf4174c2bbcd9ee738b0..abfc56b105d56691dc3f1d314edbb16368a8939d 100644 (file)
@@ -330,6 +330,9 @@ public class RefLogEntry implements Serializable, Comparable<RefLogEntry> {
        }\r
 \r
        public PersonIdent getAuthorIdent() {\r
+               if (getAuthorCount() == 1) {\r
+                       return getCommits().get(0).getAuthorIdent();\r
+               }\r
                return getCommitterIdent();\r
        }\r
 \r