diff options
| author | Nicolas Cornu <nicolac76@yahoo.fr> | 2017-06-16 12:09:06 +0200 |
|---|---|---|
| committer | Nicolas Cornu <nicolac76@yahoo.fr> | 2017-06-16 12:23:26 +0200 |
| commit | 8419ab22d69ed0d89809f322aef16105ad6bb127 (patch) | |
| tree | 531c8ee1efdc3455317aa09856312a8724b6ba2e | |
| parent | 35d22217a5ed2f8b5b9b183217923071ccfe7f37 (diff) | |
| download | git-repo-8419ab22d69ed0d89809f322aef16105ad6bb127.tar.gz | |
sync: Continue job if some fetchs failed but force-broken is set
With --force-broken it continue to fetch other projects but nothing
is added in directory because it abort some lines later.
Change-Id: I32c4a4619b3028893dc4f98e8d4e5bc5c09adb27
| -rw-r--r-- | subcmds/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index ef023274..2d00eb7d 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -393,7 +393,7 @@ later is required to fix a server side protocol bug. | |||
| 393 | t.join() | 393 | t.join() |
| 394 | 394 | ||
| 395 | # If we saw an error, exit with code 1 so that other scripts can check. | 395 | # If we saw an error, exit with code 1 so that other scripts can check. |
| 396 | if err_event.isSet(): | 396 | if err_event.isSet() and not opt.force_broken: |
| 397 | print('\nerror: Exited sync due to fetch errors', file=sys.stderr) | 397 | print('\nerror: Exited sync due to fetch errors', file=sys.stderr) |
| 398 | sys.exit(1) | 398 | sys.exit(1) |
| 399 | 399 | ||
