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

@@ -162,7 +162,8 @@ class DeleteBranches implements RestModifyView<ProjectResource, Input> {
}
private void postDeletion(ProjectResource project, ReceiveCommand cmd) {
referenceUpdated.fire(project.getNameKey(), cmd);
referenceUpdated.fire(project.getNameKey(), cmd,
identifiedUser.get().getAccount());
Branch.NameKey branchKey =
new Branch.NameKey(project.getNameKey(), cmd.getRefName());
hooks.doRefUpdatedHook(branchKey, cmd.getOldId(), cmd.getNewId(),