From 5b29c53b326b5fd283cb06356e94df5f78508860 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 23 Mar 2012 16:35:48 -0400 Subject: [PATCH] Update indexed branches on federation pull --- src/com/gitblit/FederationPullExecutor.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/com/gitblit/FederationPullExecutor.java b/src/com/gitblit/FederationPullExecutor.java index 0fd1355f..10f69d2f 100644 --- a/src/com/gitblit/FederationPullExecutor.java +++ b/src/com/gitblit/FederationPullExecutor.java @@ -272,6 +272,17 @@ public class FederationPullExecutor implements Runnable { federationSets.addAll(repository.federationSets); } repository.federationSets = new ArrayList(federationSets); + + // merge indexed branches + Set indexedBranches = new HashSet(); + if (rm.indexedBranches != null) { + indexedBranches.addAll(rm.indexedBranches); + } + if (repository.indexedBranches != null) { + indexedBranches.addAll(repository.indexedBranches); + } + repository.indexedBranches = new ArrayList(indexedBranches); + } // only repositories that are actually _cloned_ from the origin // Gitblit repository are marked as federated. If the origin -- 2.39.5