From 910dfe84978b6ed3400e367c6a9f3cb3f17a2384 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 29 Feb 2020 02:55:19 -0500 Subject: [PATCH] launcher: warn when verification is disabled Make it clear(er) to the user that this option is dangerous. Bug: https://crbug.com/gerrit/11045 Change-Id: I5580996c26653a7c823b69008de3626abf1b0068 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/257333 Tested-by: Mike Frysinger Reviewed-by: David Pursehouse --- repo | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repo b/repo index 0e9dd033..0bf21210 100755 --- a/repo +++ b/repo @@ -525,6 +525,9 @@ def _Init(args, gitc_init=False): try: if not opt.repo_verify: do_verify = False + print('repo: warning: verification of repo code has been disabled;\n' + 'repo will not be able to verify the integrity of itself.\n', + file=sys.stderr) else: if NeedSetupGnuPG(): do_verify = SetupGnuPG(opt.quiet)