gs: Retry failed uploads where the digest from the server doesn't match.

What likely happened is that the data was corrupted on transfer. The remote
file is deleted when that happens, so we can just retry the upload with
hopefully better results.

TEST=Ran a tryjob for butterfly-paladin. Ran run_tests.

Change-Id: I881f866fc6a4a4cc5cd90c85d73b88814b3e3ba0
Reviewed-by: Yu-Ju Hong <>
Commit-Queue: Gabe Black <>
Tested-by: Gabe Black <>
1 file changed