summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2019-08-07 18:07:31 -0400
committerMike Frysinger <vapier@google.com>2019-08-08 02:54:39 +0000
commita34186e4813170f3c71ec51c740cd571c79e12b5 (patch)
treef8d90ecc610f2723a4f2f0b28f53725acc0c05f2
parent600f49278ae93ee93c3511562eb81d6690319c75 (diff)
downloadgit-repo-a34186e4813170f3c71ec51c740cd571c79e12b5.tar.gz
sync: fix handling of -f and local checkouts
The partial clone rework (commit 745be2ede1e67421275afc00c04d996d9d6908ee "Add support for partial clone") changed the behavior when a single repo hit a failure: it would always call sys.exit() immediately. This isn't even necessary as we already pass down an error event object which the workers set and the parent checks. Just delete the exit entirely. Change-Id: Id72d8642aefa2bde24e1a438dbe102c3e3cabf48 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/233552 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
-rw-r--r--subcmds/sync.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index b752cfbe..a66dd6cd 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -436,9 +436,7 @@ later is required to fix a server side protocol bug.
436 _CheckoutOne docstring for details. 436 _CheckoutOne docstring for details.
437 """ 437 """
438 try: 438 try:
439 success = self._CheckoutOne(opt, project, *args, **kwargs) 439 return self._CheckoutOne(opt, project, *args, **kwargs)
440 if not success:
441 sys.exit(1)
442 finally: 440 finally:
443 sem.release() 441 sem.release()
444 442