Repository: tinkerpop Updated Branches: refs/heads/TRAVIS-TEST 3890bf111 -> 0e8597d70
foo Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/0e8597d7 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/0e8597d7 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/0e8597d7 Branch: refs/heads/TRAVIS-TEST Commit: 0e8597d70723b04c1454d377fe65bc0203d95376 Parents: 3890bf1 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Authored: Mon Mar 12 10:19:09 2018 -0700 Committer: Daniel Kuppitz <daniel_kupp...@hotmail.com> Committed: Mon Mar 12 10:19:09 2018 -0700 ---------------------------------------------------------------------- .../process/traversal/strategy/decoration/SubgraphStrategy.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/0e8597d7/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/SubgraphStrategy.java ---------------------------------------------------------------------- diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/SubgraphStrategy.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/SubgraphStrategy.java index cee0a56..9f4f75c 100644 --- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/SubgraphStrategy.java +++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/SubgraphStrategy.java @@ -45,6 +45,7 @@ import org.apache.tinkerpop.gremlin.process.traversal.step.map.VertexStep; import org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectStep; import org.apache.tinkerpop.gremlin.process.traversal.step.util.EmptyStep; import org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy; +import org.apache.tinkerpop.gremlin.process.traversal.traverser.TraverserRequirement; import org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal; import org.apache.tinkerpop.gremlin.process.traversal.util.TraversalHelper; import org.apache.tinkerpop.gremlin.structure.Direction; @@ -147,6 +148,7 @@ public final class SubgraphStrategy extends AbstractTraversalStrategy<TraversalS traversal.getStartStep().removeLabel(MARKER); return; } + RequirementsStrategy.addRequirements(traversal.getStrategies(), TraverserRequirement.PATH); // final List<GraphStep> graphSteps = TraversalHelper.getStepsOfAssignableClass(GraphStep.class, traversal); final List<VertexStep> vertexSteps = TraversalHelper.getStepsOfAssignableClass(VertexStep.class, traversal);