[win-bootstrap] Update warning to specify agreement is to automatic updates

Bug: b/382395049
Change-Id: I6e9aa9521f1f101590b292eb1f8d381cf3c88de8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6072988
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Anne Redulla <aredulla@google.com>
Reviewed-by: Allen Li <ayatane@chromium.org>
changes/88/6072988/9
Anne Redulla 7 months ago committed by LUCI CQ
parent b906c107a8
commit 675c4e57ea

@ -414,15 +414,18 @@ def _win_git_bootstrap_config():
return
if allow_global not in ('true', '1', 'yes', 'on'):
logging.warning(
'depot_tools would like to update your global Git config\n'
'to have the optimal settings for Chromium development.\n'
'Allow this by running:\n'
f' git config --global {allow_global_key} true\n'
'Then, get depot_tools to update your config by running:\n'
' gclient sync\n'
'To deny and silence this warning, run:\n'
f' git config --global {allow_global_key} false\n')
lines = [
'depot_tools would like to update your global Git config',
'to have the optimal settings for Chromium development.',
'You can allow depot_tools to automatically update your global',
'Git config to recommended settings by running:',
f'$ git config --global {allow_global_key} true',
'',
'To suppress this warning:',
f'$ git config --global {allow_global_key} false',
]
logging.warning('\n'.join(lines))
return
# Global git config changes have been authorized - do the update.

Loading…
Cancel
Save