diff options
author | James Moger <james.moger@gitblit.com> | 2014-01-14 10:06:56 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-01-14 10:06:56 -0500 |
commit | 5131d611ae044837318b97d206b6a89f2b25b4c4 (patch) | |
tree | b2caae842070aa7355cfcc7411bd696e025f0ac4 /src/main/java/com/gitblit | |
parent | 3c94742aed91c1e7597e4e75d967c1d7a6bdbb84 (diff) | |
download | gitblit-5131d611ae044837318b97d206b6a89f2b25b4c4.tar.gz gitblit-5131d611ae044837318b97d206b6a89f2b25b4c4.zip |
Fixed incorrect tagger identity on dashboards (issue-276)
Diffstat (limited to 'src/main/java/com/gitblit')
-rw-r--r-- | src/main/java/com/gitblit/utils/RefLogUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/utils/RefLogUtils.java b/src/main/java/com/gitblit/utils/RefLogUtils.java index af247733..d19e892a 100644 --- a/src/main/java/com/gitblit/utils/RefLogUtils.java +++ b/src/main/java/com/gitblit/utils/RefLogUtils.java @@ -642,7 +642,7 @@ public class RefLogUtils { if (ref.getName().startsWith(Constants.R_TAGS)) { // treat tags as special events in the log if (!tags.containsKey(dateStr)) { - UserModel tagUser = newUserModelFrom(commit.getAuthorIdent()); + UserModel tagUser = newUserModelFrom(ref.getAuthorIdent()); Date tagDate = commit.getAuthorIdent().getWhen(); tags.put(dateStr, new DailyLogEntry(repositoryName, tagDate, tagUser)); } @@ -653,7 +653,7 @@ public class RefLogUtils { } else if (ref.getName().startsWith(Constants.R_PULL)) { // treat pull requests as special events in the log if (!pulls.containsKey(dateStr)) { - UserModel commitUser = newUserModelFrom(commit.getAuthorIdent()); + UserModel commitUser = newUserModelFrom(ref.getAuthorIdent()); Date commitDate = commit.getAuthorIdent().getWhen(); pulls.put(dateStr, new DailyLogEntry(repositoryName, commitDate, commitUser)); } |