diff options
author | James Moger <james.moger@gitblit.com> | 2014-03-06 13:36:23 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-03-06 13:36:23 -0500 |
commit | 9883341c1fbb35abcb7a1d09f93f6a9e805ea551 (patch) | |
tree | 861c1aeb430e2c8a896873ad249734ebf5e4701c /src/main/java/com/gitblit/git/GitblitReceivePack.java | |
parent | e462bbf2974d33f1a5a0b2a808e150aa0e22d6f4 (diff) | |
download | gitblit-9883341c1fbb35abcb7a1d09f93f6a9e805ea551.tar.gz gitblit-9883341c1fbb35abcb7a1d09f93f6a9e805ea551.zip |
Revise push/mirror tickets branch triggering
Diffstat (limited to 'src/main/java/com/gitblit/git/GitblitReceivePack.java')
-rw-r--r-- | src/main/java/com/gitblit/git/GitblitReceivePack.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/git/GitblitReceivePack.java b/src/main/java/com/gitblit/git/GitblitReceivePack.java index 605632cf..e3e2faeb 100644 --- a/src/main/java/com/gitblit/git/GitblitReceivePack.java +++ b/src/main/java/com/gitblit/git/GitblitReceivePack.java @@ -51,7 +51,6 @@ import com.gitblit.manager.IGitblit; import com.gitblit.models.RepositoryModel;
import com.gitblit.models.UserModel;
import com.gitblit.tickets.BranchTicketService;
-import com.gitblit.tickets.BranchTicketService.TicketsBranchUpdated;
import com.gitblit.utils.ArrayUtils;
import com.gitblit.utils.ClientLogger;
import com.gitblit.utils.CommitCache;
@@ -344,12 +343,13 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P } catch (Exception e) {
LOGGER.error(MessageFormat.format("Failed to update {0} pushlog", repository.name), e);
}
-
+
// check for updates pushed to the BranchTicketService branch
+ // if the BranchTicketService is active it will reindex, as appropriate
for (ReceiveCommand cmd : commands) {
if (Result.OK.equals(cmd.getResult())
&& BranchTicketService.BRANCH.equals(cmd.getRefName())) {
- rp.getRepository().fireEvent(new TicketsBranchUpdated(repository));
+ rp.getRepository().fireEvent(new ReceiveCommandEvent(repository, cmd));
}
}
|