git-repo/subcmds
Mike Frysinger 72ab852ca5 grep: handle errors gracefully
If `git grep` fails in any project checkout (e.g. an incomplete
sync), make sure we print that error clearly rather than blowing
up, and exit non-zero in the process.

Bug: https://crbug.com/gerrit/11613
Change-Id: I31de1134fdcc7aaa9814cf2eb6a67d398eebf9cf
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/239237
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
2019-10-01 05:45:58 +00:00
..
__init__.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
abandon.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
branches.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
checkout.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
cherry_pick.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
diff.py diff: handle errors gracefully 2019-10-01 05:44:09 +00:00
diffmanifests.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
download.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
forall.py forall: exit 1 if we skip any repos 2019-10-01 05:43:51 +00:00
gitc_delete.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
gitc_init.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
grep.py grep: handle errors gracefully 2019-10-01 05:45:58 +00:00
help.py help: add a --help-all option to show all commands at once 2019-08-27 07:07:24 +00:00
info.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
init.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
list.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
manifest.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
overview.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
prune.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
rebase.py rebase: add basic coloring output 2019-09-24 04:17:03 +00:00
selfupdate.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
smartsync.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
stage.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
start.py Add repo start option to create the branch based off HEAD 2019-09-04 04:34:50 +00:00
status.py status: import print_function 2019-06-14 14:13:23 +00:00
sync.py sync: create dedicated manifest project update func 2019-09-19 01:52:08 +00:00
upload.py use print() instead of sys.stdout.write() 2019-07-11 06:26:40 +00:00
version.py git_command: drop custom version helper 2019-07-11 01:30:18 +00:00