mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Omit all default groups when generating a manifest
One of the recent changes introduced implicit path:xxx and name:xxx groups to every project, however they are not being stripped when generating a manifest using "repo manifest" command resulting in clutter Change-Id: Iec8610ba794b2fe4a6cdf0f59ca561595b66f9b5
This commit is contained in:
parent
b9477bc2dd
commit
17f85eab24
@ -211,7 +211,8 @@ class XmlManifest(object):
|
|||||||
ce.setAttribute('dest', c.dest)
|
ce.setAttribute('dest', c.dest)
|
||||||
e.appendChild(ce)
|
e.appendChild(ce)
|
||||||
|
|
||||||
egroups = [g for g in p.groups if g != 'default']
|
default_groups = ['default', 'name:%s' % p.name, 'path:%s' % p.relpath]
|
||||||
|
egroups = [g for g in p.groups if g not in default_groups]
|
||||||
if egroups:
|
if egroups:
|
||||||
e.setAttribute('groups', ','.join(egroups))
|
e.setAttribute('groups', ','.join(egroups))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user