summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2012-03-14 15:36:59 -0700
committerShawn O. Pearce <sop@google.com>2012-03-14 15:38:28 -0700
commite02ac0af2e69f2c149de942d639bf305e5ae391a (patch)
tree47da1f6f01e8429659ca10de890c9747c2a0e80a /subcmds/sync.py
parent898e12a2d9340706eca79e6c611166dfe35a1d3e (diff)
downloadgit-repo-e02ac0af2e69f2c149de942d639bf305e5ae391a.tar.gz
sync: --no-clone-bundle disables the clone bundle supportv1.8.0
Change-Id: Ia9ed7da8451b273c1be620c3dd0dcad777b29096
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 6dcce82e..74b3f183 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -86,6 +86,12 @@ specify a custom tag/label.
86The -f/--force-broken option can be used to proceed with syncing 86The -f/--force-broken option can be used to proceed with syncing
87other projects if a project sync fails. 87other projects if a project sync fails.
88 88
89The --no-clone-bundle option disables any attempt to use
90$URL/clone.bundle to bootstrap a new Git repository from a
91resumeable bundle file on a content delivery network. This
92may be necessary if there are problems with the local Python
93HTTP client or proxy configuration, but the Git binary works.
94
89SSH Connections 95SSH Connections
90--------------- 96---------------
91 97
@@ -143,6 +149,9 @@ later is required to fix a server side protocol bug.
143 p.add_option('-m', '--manifest-name', 149 p.add_option('-m', '--manifest-name',
144 dest='manifest_name', 150 dest='manifest_name',
145 help='temporary manifest to use for this sync', metavar='NAME.xml') 151 help='temporary manifest to use for this sync', metavar='NAME.xml')
152 p.add_option('--no-clone-bundle',
153 dest='no_clone_bundle', action='store_true',
154 help='disable use of /clone.bundle on HTTP/HTTPS')
146 if show_smart: 155 if show_smart:
147 p.add_option('-s', '--smart-sync', 156 p.add_option('-s', '--smart-sync',
148 dest='smart_sync', action='store_true', 157 dest='smart_sync', action='store_true',
@@ -185,8 +194,10 @@ later is required to fix a server side protocol bug.
185 # - We always make sure we unlock the lock if we locked it. 194 # - We always make sure we unlock the lock if we locked it.
186 try: 195 try:
187 try: 196 try:
188 success = project.Sync_NetworkHalf(quiet=opt.quiet, 197 success = project.Sync_NetworkHalf(
189 current_branch_only=opt.current_branch_only) 198 quiet=opt.quiet,
199 current_branch_only=opt.current_branch_only,
200 clone_bundle=not opt.no_clone_bundle)
190 201
191 # Lock around all the rest of the code, since printing, updating a set 202 # Lock around all the rest of the code, since printing, updating a set
192 # and Progress.update() are not thread safe. 203 # and Progress.update() are not thread safe.