diff options
author | LaMont Jones <lamontjones@google.com> | 2022-10-26 16:34:40 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-10-26 23:13:02 +0000 |
commit | b6cfa095006b30a430e1ad3e772c5a5b53cdf875 (patch) | |
tree | 145f2a4fc446eb827e8f7a9df05cca53196d0e82 /subcmds/sync.py | |
parent | 78dcd3799b50fd512f83e27cfad31bd0d6139ba4 (diff) | |
download | git-repo-b6cfa095006b30a430e1ad3e772c5a5b53cdf875.tar.gz |
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 <samccone@google.com>
Reviewed-by: Xin Li <delphij@google.com>
Tested-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 1 |
1 files changed, 1 insertions, 0 deletions
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. | |||
1277 | 1277 | ||
1278 | err_network_sync = False | 1278 | err_network_sync = False |
1279 | err_update_projects = False | 1279 | err_update_projects = False |
1280 | err_update_linkfiles = False | ||
1280 | 1281 | ||
1281 | self._fetch_times = _FetchTimes(manifest) | 1282 | self._fetch_times = _FetchTimes(manifest) |
1282 | if not opt.local_only: | 1283 | if not opt.local_only: |