From 6ef20022464778345060619f6b58ec6716738ac7 Mon Sep 17 00:00:00 2001 From: Edward Lemur Date: Thu, 14 Sep 2017 20:46:01 +0200 Subject: [PATCH] Use current user instead of kjellander@ in the roll script. NOTRY=True Bug: chromium:738330 Change-Id: If7a67578d03961a6613a92fb7459f1315286202e Reviewed-on: https://webrtc-review.googlesource.com/1463 Reviewed-by: Henrik Kjellander Commit-Queue: Edward Lemur Cr-Commit-Position: refs/heads/master@{#19855} --- tools_webrtc/autoroller/roll_deps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools_webrtc/autoroller/roll_deps.py b/tools_webrtc/autoroller/roll_deps.py index 296565881d..fa3c90b9f0 100755 --- a/tools_webrtc/autoroller/roll_deps.py +++ b/tools_webrtc/autoroller/roll_deps.py @@ -318,7 +318,11 @@ def GenerateCommitMessage(current_cr_rev, new_cr_rev, current_commit_pos, commit_msg.append('No update to Clang.\n') # TBR needs to be non-empty for Gerrit to process it. - commit_msg.append('TBR=kjellander@webrtc.org, %s' % tbr_authors) + git_author = _RunCommand(['git', 'config', 'user.email'], + working_dir=CHECKOUT_SRC_DIR)[0].splitlines()[0] + tbr_authors = git_author + ',' + tbr_authors + + commit_msg.append('TBR=%s' % tbr_authors) commit_msg.append('BUG=None') commit_msg.append('CQ_INCLUDE_TRYBOTS=%s' % EXTRA_TRYBOTS) return '\n'.join(commit_msg)