From 1c21d7cb523d20b7d3febb5aa9dc5798c1ffdbae Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Tue, 19 Mar 2019 07:21:23 +0000 Subject: [PATCH] [bot_update] show git protocol version Bug: 875453 Change-Id: I2ddfc42a2fa79212fe7f9e10c8e81255c0181161 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1530221 Commit-Queue: Takuto Ikuta Reviewed-by: Andrii Shyshkalov --- recipes/recipe_modules/bot_update/resources/bot_update.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes/recipe_modules/bot_update/resources/bot_update.py b/recipes/recipe_modules/bot_update/resources/bot_update.py index d108894cf0..730d9b8197 100755 --- a/recipes/recipe_modules/bot_update/resources/bot_update.py +++ b/recipes/recipe_modules/bot_update/resources/bot_update.py @@ -1036,6 +1036,12 @@ def checkout(options, git_slns, specs, revisions, step_text): ver = git('version').strip() print 'Using %s' % ver + try: + protocol = git('config', '--get', 'protocol.version') + print 'Using git protocol version %s' % protocol + except SubprocessFailed as e: + print 'git protocol version is not specified.' + first_sln = git_slns[0]['name'] dir_names = [sln.get('name') for sln in git_slns if 'name' in sln] try: