diff options
| -rw-r--r-- | project.py | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -966,7 +966,15 @@ class Project(object): | |||
| 966 | and self._ApplyCloneBundle(initial=is_new, quiet=quiet): | 966 | and self._ApplyCloneBundle(initial=is_new, quiet=quiet): |
| 967 | is_new = False | 967 | is_new = False |
| 968 | 968 | ||
| 969 | current_branch_only = current_branch_only or self.sync_c or self.manifest.default.sync_c | 969 | if not current_branch_only: |
| 970 | if self.sync_c: | ||
| 971 | current_branch_only = True | ||
| 972 | elif not self.manifest._loaded: | ||
| 973 | # Manifest cannot check defaults until it syncs. | ||
| 974 | current_branch_only = False | ||
| 975 | elif self.manifest.default.sync_c: | ||
| 976 | current_branch_only = True | ||
| 977 | |||
| 970 | if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, | 978 | if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, |
| 971 | current_branch_only=current_branch_only): | 979 | current_branch_only=current_branch_only): |
| 972 | return False | 980 | return False |
