diff options
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 1cba3665..6cf39d14 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -86,6 +86,10 @@ to update the working directory files. | |||
86 | g.add_option('--depth', type='int', default=None, | 86 | g.add_option('--depth', type='int', default=None, |
87 | dest='depth', | 87 | dest='depth', |
88 | help='create a shallow clone with given depth; see git clone') | 88 | help='create a shallow clone with given depth; see git clone') |
89 | g.add_option('-g', '--groups', | ||
90 | dest='groups', default="", | ||
91 | help='restrict manifest projects to ones with a specified group', | ||
92 | metavar='GROUP') | ||
89 | 93 | ||
90 | # Tool | 94 | # Tool |
91 | g = p.add_option_group('repo Version options') | 95 | g = p.add_option_group('repo Version options') |
@@ -135,6 +139,8 @@ to update the working directory files. | |||
135 | r.ResetFetch() | 139 | r.ResetFetch() |
136 | r.Save() | 140 | r.Save() |
137 | 141 | ||
142 | m.config.SetString('manifest.groups', opt.groups) | ||
143 | |||
138 | if opt.reference: | 144 | if opt.reference: |
139 | m.config.SetString('repo.reference', opt.reference) | 145 | m.config.SetString('repo.reference', opt.reference) |
140 | 146 | ||