diff options
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/init.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 11312601..29730cc4 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -91,8 +91,9 @@ to update the working directory files. | |||
| 91 | dest='depth', | 91 | dest='depth', |
| 92 | help='create a shallow clone with given depth; see git clone') | 92 | help='create a shallow clone with given depth; see git clone') |
| 93 | g.add_option('-g', '--groups', | 93 | g.add_option('-g', '--groups', |
| 94 | dest='groups', default='all,-notdefault', | 94 | dest='groups', default='default', |
| 95 | help='restrict manifest projects to ones with a specified group', | 95 | help='restrict manifest projects to ones with specified ' |
| 96 | 'group(s) [default|all|G1,G2,G3|G4,-G5,-G6]', | ||
| 96 | metavar='GROUP') | 97 | metavar='GROUP') |
| 97 | g.add_option('-p', '--platform', | 98 | g.add_option('-p', '--platform', |
| 98 | dest='platform', default='auto', | 99 | dest='platform', default='auto', |
| @@ -169,7 +170,7 @@ to update the working directory files. | |||
| 169 | 170 | ||
| 170 | groups = [x for x in groups if x] | 171 | groups = [x for x in groups if x] |
| 171 | groupstr = ','.join(groups) | 172 | groupstr = ','.join(groups) |
| 172 | if opt.platform == 'auto' and groupstr == 'all,-notdefault,platform-' + platform.system().lower(): | 173 | if opt.platform == 'auto' and groupstr == 'default,platform-' + platform.system().lower(): |
| 173 | groupstr = None | 174 | groupstr = None |
| 174 | m.config.SetString('manifest.groups', groupstr) | 175 | m.config.SetString('manifest.groups', groupstr) |
| 175 | 176 | ||
