Skip to content

Commit

Permalink
[bot_update] show git protocol version
Browse files Browse the repository at this point in the history
Bug: 875453
Change-Id: I2ddfc42a2fa79212fe7f9e10c8e81255c0181161
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1530221
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
  • Loading branch information
Takuto Ikuta authored and Commit Bot committed Mar 19, 2019
1 parent c2f74c1 commit 1c21d7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/recipe_modules/bot_update/resources/bot_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1c21d7c

Please sign in to comment.