commit | 67e12286df04ef0eeec3aeaf6f224d2fe11751b7 | [log] [tgz] |
---|---|---|
author | Josip Sokcevic <sokcevic@google.com> | Wed Dec 16 17:12:45 2020 +0000 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 16 17:12:45 2020 +0000 |
tree | a2b87c95fe6a5768e659ef69130138b65029ed40 | |
parent | d5b38571d31e4483b25a9ec83434ddadc6ba0ad1 [diff] [blame] |
Add validation after downloading cache from GS R=ehmaldonado@chromium.org, gavinmak@google.com Bug: 1159123 Change-Id: I21aedd9e0c557f75d8c11e055013cc4a540ea20c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2595787 Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org> Commit-Queue: Josip Sokcevic <sokcevic@google.com>
diff --git a/git_cache.py b/git_cache.py index c332520..89f7f6d 100755 --- a/git_cache.py +++ b/git_cache.py
@@ -308,6 +308,8 @@ tempdir) if code: return False + # A quick validation that all references are valid. + self.RunGit(['for-each-ref'], cwd=tempdir) except Exception as e: self.print('Encountered error: %s' % str(e), file=sys.stderr) gclient_utils.rmtree(tempdir)