Added 'git-retry' bootstrap

Added the 'git-retry' bootstrap command. This can be used to wrap other 'git'
commands around a fault-tolerant retry wrapper.

BUG=295109
TEST=localtest
R=iannucci@chromium.org, petermayo@chromium.org

Review URL: https://codereview.chromium.org/401673003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@285939 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
dnj@chromium.org
2014-07-28 17:39:08 +00:00
parent b8e529fae4
commit de219ec51d
7 changed files with 1251 additions and 0 deletions

11
git-retry Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# git_freezer.py freeze -- a git-command to suspend all existing working
# directory modifications. This can be reversed with the 'git thaw' command.
SCRIPT=git_retry.py
set -- retry "$@"
. $(type -P python_git_runner.sh)