diff options
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 3566b8b6..a23e529d 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -227,6 +227,9 @@ to update the working directory files. | |||
227 | else: | 227 | else: |
228 | opt.clone_filter = None | 228 | opt.clone_filter = None |
229 | 229 | ||
230 | if opt.partial_clone_exclude is not None: | ||
231 | m.config.SetString('repo.partialcloneexclude', opt.partial_clone_exclude) | ||
232 | |||
230 | if opt.clone_bundle is None: | 233 | if opt.clone_bundle is None: |
231 | opt.clone_bundle = False if opt.partial_clone else True | 234 | opt.clone_bundle = False if opt.partial_clone else True |
232 | else: | 235 | else: |
@@ -242,7 +245,8 @@ to update the working directory files. | |||
242 | clone_bundle=opt.clone_bundle, | 245 | clone_bundle=opt.clone_bundle, |
243 | current_branch_only=opt.current_branch_only, | 246 | current_branch_only=opt.current_branch_only, |
244 | tags=opt.tags, submodules=opt.submodules, | 247 | tags=opt.tags, submodules=opt.submodules, |
245 | clone_filter=opt.clone_filter): | 248 | clone_filter=opt.clone_filter, |
249 | partial_clone_exclude=self.manifest.PartialCloneExclude): | ||
246 | r = m.GetRemote(m.remote.name) | 250 | r = m.GetRemote(m.remote.name) |
247 | print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) | 251 | print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) |
248 | 252 | ||