Commit 3721ee91 authored by Aaron Gable's avatar Aaron Gable Committed by Commit Bot

gclient: Don't die on empty .gclient_entries file

Bug: 707313
Change-Id: Ic3860aa6b9aeaba3ec02ab8dac8dd63429f917cc
Reviewed-on: https://chromium-review.googlesource.com/466688Reviewed-by: 's avatarErik Staab <estaab@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
parent c878ba60
......@@ -1309,7 +1309,7 @@ it or fix the checkout.
exec(gclient_utils.FileRead(filename), scope)
except SyntaxError as e:
gclient_utils.SyntaxErrorToError(filename, e)
return scope['entries']
return scope.get('entries', {})
def _EnforceRevisions(self):
"""Checks for revision overrides."""
......
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