mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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:
parent
2ee0a62db0
commit
14208f4c93
@ -986,9 +986,9 @@ later is required to fix a server side protocol bug.
|
|||||||
print('\nerror: Local checkouts *not* updated.', file=sys.stderr)
|
print('\nerror: Local checkouts *not* updated.', file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not self.UpdateCopyLinkfileList():
|
err_update_linkfiles = not self.UpdateCopyLinkfileList()
|
||||||
|
if err_update_linkfiles:
|
||||||
err_event.set()
|
err_event.set()
|
||||||
err_update_linkfiles = True
|
|
||||||
if opt.fail_fast:
|
if opt.fail_fast:
|
||||||
print('\nerror: Local update copyfile or linkfile failed.', file=sys.stderr)
|
print('\nerror: Local update copyfile or linkfile failed.', file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user