mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Allow projects with groups=None
Mirror manifest and repo projects are outside the manifest and have no groups. Allow project groups to be None for these projects. Change-Id: I3e1c4add894fe1c43aa4e77a1fc1558aa10dd191
This commit is contained in:
parent
6ba6ba0ef3
commit
eca119e5d6
@ -666,6 +666,8 @@ class Project(object):
|
|||||||
manifest_groups: "-group1,group2"
|
manifest_groups: "-group1,group2"
|
||||||
the project will be matched.
|
the project will be matched.
|
||||||
"""
|
"""
|
||||||
|
if self.groups is None:
|
||||||
|
return True
|
||||||
matched = False
|
matched = False
|
||||||
for group in manifest_groups:
|
for group in manifest_groups:
|
||||||
if group.startswith('-') and group[1:] in self.groups:
|
if group.startswith('-') and group[1:] in self.groups:
|
||||||
|
Loading…
Reference in New Issue
Block a user