summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2011-10-11 12:00:38 -0700
committerShawn O. Pearce <sop@google.com>2011-10-11 12:18:07 -0700
commitfab96c68e3acfb5403ffe65577563f3cb39e2530 (patch)
tree972a82f40c3e7de6b88f174f5f5b2a3418f92e40 /subcmds/sync.py
parentbf1fbb20ab33cc479881a2b755e336872971dd78 (diff)
downloadgit-repo-fab96c68e3acfb5403ffe65577563f3cb39e2530.tar.gz
Work around Python 2.7 urllib2 bug
If the remote is using authenticated HTTP, but does not have $GIT_URL/clone.bundle files in each repository, an initial sync would fail around 8 projects in due to the library not resetting the number of failures after getting a 404. Work around this by updating the retry counter ourselves. The urllib2 library is also not thread-safe. Make it somewhat safer by wrapping the critical section with a lock. Change-Id: I886e2750ef4793cbe2150c3b5396eb9f10974f7f Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/sync.py')
0 files changed, 0 insertions, 0 deletions