diff options
| -rw-r--r-- | subcmds/sync.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 2973a16e..ca4b97b3 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -217,6 +217,10 @@ later is required to fix a server side protocol bug. | |||
| 217 | p.add_option('-l', '--local-only', | 217 | p.add_option('-l', '--local-only', |
| 218 | dest='local_only', action='store_true', | 218 | dest='local_only', action='store_true', |
| 219 | help="only update working tree, don't fetch") | 219 | help="only update working tree, don't fetch") |
| 220 | p.add_option('--no-manifest-update','--nmu', | ||
| 221 | dest='mp_update', action='store_false', default='true', | ||
| 222 | help='use the existing manifest checkout as-is. ' | ||
| 223 | '(do not update to the latest revision)') | ||
| 220 | p.add_option('-n', '--network-only', | 224 | p.add_option('-n', '--network-only', |
| 221 | dest='network_only', action='store_true', | 225 | dest='network_only', action='store_true', |
| 222 | help="fetch only, don't update working tree") | 226 | help="fetch only, don't update working tree") |
| @@ -907,7 +911,10 @@ later is required to fix a server side protocol bug. | |||
| 907 | if opt.repo_upgraded: | 911 | if opt.repo_upgraded: |
| 908 | _PostRepoUpgrade(self.manifest, quiet=opt.quiet) | 912 | _PostRepoUpgrade(self.manifest, quiet=opt.quiet) |
| 909 | 913 | ||
| 910 | self._UpdateManifestProject(opt, mp, manifest_name) | 914 | if not opt.mp_update: |
| 915 | print('Skipping update of local manifest project.') | ||
| 916 | else: | ||
| 917 | self._UpdateManifestProject(opt, mp, manifest_name) | ||
| 911 | 918 | ||
| 912 | if self.gitc_manifest: | 919 | if self.gitc_manifest: |
| 913 | gitc_manifest_projects = self.GetProjects(args, | 920 | gitc_manifest_projects = self.GetProjects(args, |
