Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: ct/go/worker_scripts/fix_archives/main.go

Issue 1129863010: Reset chromium checkout before syncing (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Initial upload Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ct/go/worker_scripts/capture_archives/main.go ('k') | ct/go/worker_scripts/run_benchmark/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ct/go/worker_scripts/fix_archives/main.go
diff --git a/ct/go/worker_scripts/fix_archives/main.go b/ct/go/worker_scripts/fix_archives/main.go
index 5f0baffed2149b99d34a6492ae0e7187a47b7dae..492468c43ed6305f52cb63035306faecc665e5db 100644
--- a/ct/go/worker_scripts/fix_archives/main.go
+++ b/ct/go/worker_scripts/fix_archives/main.go
@@ -60,6 +60,11 @@ func main() {
return
}
+ // Reset the local chromium checkout.
+ if err := util.ResetCheckout(util.ChromiumSrcDir); err != nil {
+ glog.Errorf("Could not reset %s: %s", util.ChromiumSrcDir, err)
+ return
+ }
// Sync the local chromium checkout.
if err := util.SyncDir(util.ChromiumSrcDir); err != nil {
glog.Errorf("Could not gclient sync %s: %s", util.ChromiumSrcDir, err)
« no previous file with comments | « ct/go/worker_scripts/capture_archives/main.go ('k') | ct/go/worker_scripts/run_benchmark/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698