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

Unified Diff: ct/go/worker_scripts/capture_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 | « no previous file | ct/go/worker_scripts/fix_archives/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ct/go/worker_scripts/capture_archives/main.go
diff --git a/ct/go/worker_scripts/capture_archives/main.go b/ct/go/worker_scripts/capture_archives/main.go
index b622ce104f92744c3b4f481e2350025643a395e0..15e11f7635edc13468651e7f4a35f08e79ac402f 100644
--- a/ct/go/worker_scripts/capture_archives/main.go
+++ b/ct/go/worker_scripts/capture_archives/main.go
@@ -38,6 +38,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 | « no previous file | ct/go/worker_scripts/fix_archives/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698