git-repo/subcmds
Raman Tenneti ad8aa69772 sync: only print error.GitError, don't raise that exception.
In _FetchOne & _CheckOne, only print error.GitError exception,
but other exceptions are still thrown

Fixes the GitError exceptions from /usr/lib/python3.8/multiprocessing/pool.py
exiting the repo sync.

Tested the code with the following commands and verified repo sync
continues after fetch error because of an invalid SHA1.

$ ./run_tests -v

$ python3 ~/work/repo/git-repo/repo sync -m manifest_P21623846.xml -j32
...
error.GitError: Cannot fetch platform/vendor/google_devices/redbull/proprietary update-ref: fatal: d5a99e518f09d6abb0c0dfa899594e1ea6232459^0: not a valid SHA1
....

An error like the following when jobs=1
  error.GitError: Cannot checkout platform/vendor/qcom/sdm845/proprietary/qcrilOemHook: Cannot initialize work tree for platform/vendor/qcom/sdm845/proprietary/qcrilOemHook

Bug: https://crbug.com/gerrit/14392
Change-Id: I8922ad6c07c733125419f5698b0f7e32d70c7905
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/303544
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Raman Tenneti <rtenneti@google.com>
2021-04-15 22:43:07 +00:00
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
branches.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
checkout.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
cherry_pick.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
diff.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
diffmanifests.py diffmanifests/sync: simplify repodir lookup 2021-02-11 02:38:53 +00:00
download.py download: handle shared projects a bit better 2021-03-01 15:57:17 +00:00
forall.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
gitc_delete.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
gitc_init.py init: merge subcmd & wrapper parsers 2021-04-09 01:04:32 +00:00
grep.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
help.py help: switch from formatter module to textwrap 2021-04-14 01:00:51 +00:00
info.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
init.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
list.py list: fix help grammar 2021-04-14 15:25:53 +00:00
manifest.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
overview.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
prune.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
rebase.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
selfupdate.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
smartsync.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
stage.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
start.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
status.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
sync.py sync: only print error.GitError, don't raise that exception. 2021-04-15 22:43:07 +00:00
upload.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
version.py version: add remote tracking information 2021-01-08 20:41:27 +00:00