Add AccountInfo to the GitReferenceUpdatedListener.Event

Change-Id: I19d27885a5c75c7e22031e3f0e80fff33b20d7f6
This commit is contained in:
Saša Živkov
2015-11-11 10:33:41 -08:00
committed by Yuxuan 'fishy' Wang
parent f7d3a29ac5
commit 3b68afa0ca
17 changed files with 180 additions and 47 deletions

View File

@@ -196,7 +196,7 @@ public class PutConfig implements RestModifyView<ProjectResource, Input> {
// Only fire hook if project was actually changed.
if (!Objects.equals(baseRev, commitRev)) {
gitRefUpdated.fire(projectName, RefNames.REFS_CONFIG,
baseRev, commitRev);
baseRev, commitRev, user.get().asIdentifiedUser().getAccount());
hooks.doRefUpdatedHook(
new Branch.NameKey(projectName, RefNames.REFS_CONFIG),
baseRev, commitRev, user.get().asIdentifiedUser().getAccount());