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 <kjellander@webrtc.org>
Commit-Queue: Edward Lemur <ehmaldonado@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19855}
This commit is contained in:
Edward Lemur 2017-09-14 20:46:01 +02:00 committed by Commit Bot
parent 9d8ce7c7fa
commit 6ef2002246

View File

@ -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)