diff options
| author | David Pursehouse <dpursehouse@collab.net> | 2017-05-27 04:24:58 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-05-27 04:24:58 +0000 |
| commit | fbcbcabe9879c5af5b9267bcdf30ee8939dfe9b1 (patch) | |
| tree | cad44d0577c667f11e2f23432e79cddc54e7a31d /subcmds/sync.py | |
| parent | 666debc5180f806cd31fa12b34a072e45f508e1a (diff) | |
| parent | e4e94d26ae81dbc9eb6e2f345fac7cd8c533cb9a (diff) | |
| download | git-repo-fbcbcabe9879c5af5b9267bcdf30ee8939dfe9b1.tar.gz | |
Merge "init: add --submodules to sync manifest submodules"
Diffstat (limited to 'subcmds/sync.py')
| -rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 8e8529ee..82056f33 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -723,11 +723,12 @@ later is required to fix a server side protocol bug. | |||
| 723 | mp.Sync_NetworkHalf(quiet=opt.quiet, | 723 | mp.Sync_NetworkHalf(quiet=opt.quiet, |
| 724 | current_branch_only=opt.current_branch_only, | 724 | current_branch_only=opt.current_branch_only, |
| 725 | no_tags=opt.no_tags, | 725 | no_tags=opt.no_tags, |
| 726 | optimized_fetch=opt.optimized_fetch) | 726 | optimized_fetch=opt.optimized_fetch, |
| 727 | submodules=self.manifest.HasSubmodules) | ||
| 727 | 728 | ||
| 728 | if mp.HasChanges: | 729 | if mp.HasChanges: |
| 729 | syncbuf = SyncBuffer(mp.config) | 730 | syncbuf = SyncBuffer(mp.config) |
| 730 | mp.Sync_LocalHalf(syncbuf) | 731 | mp.Sync_LocalHalf(syncbuf, submodules=self.manifest.HasSubmodules) |
| 731 | if not syncbuf.Finish(): | 732 | if not syncbuf.Finish(): |
| 732 | sys.exit(1) | 733 | sys.exit(1) |
| 733 | self._ReloadManifest(manifest_name) | 734 | self._ReloadManifest(manifest_name) |
