This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 72e23c977ec98f3d5c29b36d5354403d5b31e417 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Nov 5 14:29:02 2020 +0100 Camel-Git Branches Consumer: Added the ListMode.ALL to the call --- .../org/apache/camel/component/git/consumer/GitBranchConsumer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java index e54bfb6..729ee02 100644 --- a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java +++ b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java @@ -22,6 +22,7 @@ import java.util.List; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.component.git.GitEndpoint; +import org.eclipse.jgit.api.ListBranchCommand.ListMode; import org.eclipse.jgit.lib.Ref; public class GitBranchConsumer extends AbstractGitConsumer { @@ -35,7 +36,7 @@ public class GitBranchConsumer extends AbstractGitConsumer { @Override protected int poll() throws Exception { int count = 0; - List<Ref> call = getGit().branchList().call(); + List<Ref> call = getGit().branchList().setListMode(ListMode.ALL).call(); for (Ref ref : call) { if (!branchesConsumed.contains(ref.getName())) { Exchange e = getEndpoint().createExchange();
