diff options
| author | Shawn O. Pearce <sop@google.com> | 2012-05-24 09:46:50 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2012-05-24 09:46:50 -0700 |
| commit | 6ba6ba0ef3ae4de384d931a50ec25e675e3aab16 (patch) | |
| tree | a570790f94d09ba475bc5f1b4a74462b6e409259 /project.py | |
| parent | 23acdd3f1460bc1c040b319940c5e0e8a78f1040 (diff) | |
| download | git-repo-6ba6ba0ef3ae4de384d931a50ec25e675e3aab16.tar.gz | |
Fix initial sync broken by sync-c optionv1.9.0
Change-Id: I308753da8944e6ce5c46e3bfee1bcd41d5b7e292
Diffstat (limited to 'project.py')
| -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 |
