command: filter projects by active manifest groups
command: filter projects by active manifest groups

`repo forall <proj>` will look up all <proj> in the manifest for all
manifest groups regardless of which are active.  If <proj> is checked
out to different locations depending on the group, this ultimately
fails as we're unable to locate all of them.

Simple fix is to only include projects that match the manifest groups
that we already passed down & initialized to the active set, and that
we already use when getting the default project list.

Bug: https://crbug.com/gerrit/11677
Bug: https://crbug.com/1011226
Change-Id: I975f10f9a9e5a1cad7d87344123f8003732dab27
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/239652
Tested-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@google.com>
Reviewed-by: Raul Rangel <9a9c998e11a2655b1de9a05eeeef5f710c0dc7ed@chromium.org>
Reviewed-by: David Pursehouse <e7b5c6a4a3dbaca972851f8c075e19915752593f@collab.net>

mer-tools/git-repo,lewixliu/git-repo,codetutil/git-repo,couchbasedeps/git-repo,aosp-mirror/tools_repo,aosp-mirror/tools_repo,lewixliu/git-repo,GerritCodeReview/git-repo,TheQtCompany/git-repo,lipro-yocto/git-repo,couchbasedeps/git-repo,codetutil/git-repo,TheQtCompany/git-repo,GerritCodeReview/git-repo,lipro-yocto/git-repo,mer-tools/git-repo