From b6cfa095006b30a430e1ad3e772c5a5b53cdf875 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 26 Oct 2022 16:34:40 +0000 Subject: [PATCH] sync: uninitialized variable on mirror sync failure When repo sync fails, if the workspace is a mirror, an uninitialized variable is referenced. Bug: crbug.com/gerrit/16356 Change-Id: I1dba9f92319b9cbfd18460327560a395c88a089f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/349654 Reviewed-by: Sam Saccone Reviewed-by: Xin Li Tested-by: LaMont Jones --- subcmds/sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subcmds/sync.py b/subcmds/sync.py index 8dc22141..fe63b484 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -1277,6 +1277,7 @@ later is required to fix a server side protocol bug. err_network_sync = False err_update_projects = False + err_update_linkfiles = False self._fetch_times = _FetchTimes(manifest) if not opt.local_only: