From 3ec84f61eaa6625e8a17daa939b3249e16b8a186 Mon Sep 17 00:00:00 2001 From: "szager@chromium.org" Date: Fri, 22 Aug 2014 21:00:22 +0000 Subject: [PATCH] Sometimes options won't have a 'shallow' field. Don't freak out. BUG=406535 R=stip@chromium.org,vadimsh@chromium.org Review URL: https://codereview.chromium.org/504473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@291502 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gclient_scm.py b/gclient_scm.py index f58343175..97495fbb9 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -796,7 +796,7 @@ class GitWrapper(SCMWrapper): @staticmethod def _UpdateMirror(mirror, options): """Update a git mirror by fetching the latest commits from the remote.""" - if options.shallow: + if getattr(options, 'shallow', False): # HACK(hinoka): These repositories should be super shallow. if 'flash' in mirror.url: depth = 10