sync: fix logic error with linkfile errors

Make sure err_update_linkfiles is always initalized.

Bug: https://crbug.com/gerrit/11008
Change-Id: I7bdd91f82507608ef967daf0fa0f9c859454e19f
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/305146
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Mike Frysinger 2021-05-04 15:31:51 -04:00
parent 2ee0a62db0
commit 14208f4c93

View File

@ -986,9 +986,9 @@ later is required to fix a server side protocol bug.
print('\nerror: Local checkouts *not* updated.', file=sys.stderr)
sys.exit(1)
if not self.UpdateCopyLinkfileList():
err_update_linkfiles = not self.UpdateCopyLinkfileList()
if err_update_linkfiles:
err_event.set()
err_update_linkfiles = True
if opt.fail_fast:
print('\nerror: Local update copyfile or linkfile failed.', file=sys.stderr)
sys.exit(1)