Commit b508ecd9 authored by Edward Lesmes's avatar Edward Lesmes Committed by LUCI CQ

bot_update: Initialize synced_solutions before syncing.

If sync fails, synced_solutions is not initialized, resulting in a
use-before-init error.

Bug: 1217352
Change-Id: I2367d0f8030faa571b5c2743d5d97aa4c0329a7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2945663Reviewed-by: 's avatarBen Pastene <bpastene@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 730b974e
......@@ -1064,6 +1064,7 @@ def checkout(options, git_slns, specs, revisions, step_text):
pass
should_delete_dirty_file = False
synced_solutions = []
experiments = []
if options.experiments:
experiments = options.experiments.split(',')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment