diff options
author | Shawn O. Pearce <sop@google.com> | 2012-03-14 15:36:59 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2012-03-14 15:38:28 -0700 |
commit | e02ac0af2e69f2c149de942d639bf305e5ae391a (patch) | |
tree | 47da1f6f01e8429659ca10de890c9747c2a0e80a /project.py | |
parent | 898e12a2d9340706eca79e6c611166dfe35a1d3e (diff) | |
download | git-repo-e02ac0af2e69f2c149de942d639bf305e5ae391a.tar.gz |
sync: --no-clone-bundle disables the clone bundle supportv1.8.0
Change-Id: Ia9ed7da8451b273c1be620c3dd0dcad777b29096
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -902,7 +902,11 @@ class Project(object): | |||
902 | 902 | ||
903 | ## Sync ## | 903 | ## Sync ## |
904 | 904 | ||
905 | def Sync_NetworkHalf(self, quiet=False, is_new=None, current_branch_only=False): | 905 | def Sync_NetworkHalf(self, |
906 | quiet=False, | ||
907 | is_new=None, | ||
908 | current_branch_only=False, | ||
909 | clone_bundle=True): | ||
906 | """Perform only the network IO portion of the sync process. | 910 | """Perform only the network IO portion of the sync process. |
907 | Local working directory/branch state is not affected. | 911 | Local working directory/branch state is not affected. |
908 | """ | 912 | """ |
@@ -925,7 +929,9 @@ class Project(object): | |||
925 | else: | 929 | else: |
926 | alt_dir = None | 930 | alt_dir = None |
927 | 931 | ||
928 | if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet): | 932 | if clone_bundle \ |
933 | and alt_dir is None \ | ||
934 | and self._ApplyCloneBundle(initial=is_new, quiet=quiet): | ||
929 | is_new = False | 935 | is_new = False |
930 | 936 | ||
931 | if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, | 937 | if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, |