diff options
-rw-r--r-- | project.py | 6 | ||||
-rwxr-xr-x | repo | 5 | ||||
-rw-r--r-- | subcmds/sync.py | 5 |
3 files changed, 11 insertions, 5 deletions
@@ -1044,7 +1044,7 @@ class Project(object): | |||
1044 | current_branch_only=None, | 1044 | current_branch_only=None, |
1045 | force_sync=False, | 1045 | force_sync=False, |
1046 | clone_bundle=True, | 1046 | clone_bundle=True, |
1047 | tags=True, | 1047 | tags=None, |
1048 | archive=False, | 1048 | archive=False, |
1049 | optimized_fetch=False, | 1049 | optimized_fetch=False, |
1050 | retry_fetches=0, | 1050 | retry_fetches=0, |
@@ -1125,8 +1125,8 @@ class Project(object): | |||
1125 | elif self.manifest.default.sync_c: | 1125 | elif self.manifest.default.sync_c: |
1126 | current_branch_only = True | 1126 | current_branch_only = True |
1127 | 1127 | ||
1128 | if not self.sync_tags: | 1128 | if tags is None: |
1129 | tags = False | 1129 | tags = self.sync_tags |
1130 | 1130 | ||
1131 | if self.clone_depth: | 1131 | if self.clone_depth: |
1132 | depth = self.clone_depth | 1132 | depth = self.clone_depth |
@@ -327,8 +327,11 @@ def InitParser(parser, gitc_init=False): | |||
327 | group.add_option('--no-current-branch', | 327 | group.add_option('--no-current-branch', |
328 | dest='current_branch_only', action='store_false', | 328 | dest='current_branch_only', action='store_false', |
329 | help='fetch all manifest branches from server') | 329 | help='fetch all manifest branches from server') |
330 | group.add_option('--tags', | ||
331 | action='store_true', | ||
332 | help='fetch tags in the manifest') | ||
330 | group.add_option('--no-tags', | 333 | group.add_option('--no-tags', |
331 | dest='tags', default=True, action='store_false', | 334 | dest='tags', action='store_false', |
332 | help="don't fetch tags in the manifest") | 335 | help="don't fetch tags in the manifest") |
333 | 336 | ||
334 | # These are fundamentally different ways of structuring the checkout. | 337 | # These are fundamentally different ways of structuring the checkout. |
diff --git a/subcmds/sync.py b/subcmds/sync.py index f06c61c5..e5280865 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -234,8 +234,11 @@ later is required to fix a server side protocol bug. | |||
234 | help='fetch submodules from server') | 234 | help='fetch submodules from server') |
235 | p.add_option('--use-superproject', action='store_true', | 235 | p.add_option('--use-superproject', action='store_true', |
236 | help='use the manifest superproject to sync projects') | 236 | help='use the manifest superproject to sync projects') |
237 | p.add_option('--tags', | ||
238 | action='store_false', | ||
239 | help='fetch tags') | ||
237 | p.add_option('--no-tags', | 240 | p.add_option('--no-tags', |
238 | dest='tags', default=True, action='store_false', | 241 | dest='tags', action='store_false', |
239 | help="don't fetch tags") | 242 | help="don't fetch tags") |
240 | p.add_option('--optimized-fetch', | 243 | p.add_option('--optimized-fetch', |
241 | dest='optimized_fetch', action='store_true', | 244 | dest='optimized_fetch', action='store_true', |