diff options
Diffstat (limited to 'lib/git.py')
-rw-r--r-- | lib/git.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git.py b/lib/git.py index 694dc804c..b2ed60002 100644 --- a/lib/git.py +++ b/lib/git.py @@ -67,6 +67,9 @@ GIT_TRANSIENT_ERRORS = ( # crbug.com/451458, b/19202011 r'repository cannot accept new pushes; contact support', + + # crbug.com/535306 + r'Service Temporarily Unavailable', ) GIT_TRANSIENT_ERRORS_RE = re.compile('|'.join(GIT_TRANSIENT_ERRORS), @@ -146,6 +149,7 @@ def IsGitRepositoryCorrupted(cwd): """ cmd = ['fsck', '--no-progress', '--no-dangling'] try: + GarbageCollection(cwd) RunGit(cwd, cmd) return False except cros_build_lib.RunCommandError as ex: |