Commit 90e958b3 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov

bot_update: set fake user.{name,email} when running rebase.

R=agable@chromium.org,sergeyberezin@chromium.org,iannucci@chromium.org
BUG=722853

Change-Id: I9bd8c259a87cc65e320e99d9c5e18838b970d543
Reviewed-on: https://chromium-review.googlesource.com/505495Reviewed-by: 's avatarSergey Berezin <sergeyberezin@chromium.org>
Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
parent 0faadc98
......@@ -672,7 +672,9 @@ def apply_gerrit_ref(gerrit_repo, gerrit_ref, root, gerrit_reset,
ok = False
git('checkout', '-b', temp_branch_name, cwd=root)
try:
git('rebase', base_rev, cwd=root, tries=1)
git('-c', 'user.name=chrome-bot',
'-c', 'user.email=chrome-bot@chromium.org',
'rebase', base_rev, cwd=root, tries=1)
except SubprocessFailed:
# Abort the rebase since there were failures.
git('rebase', '--abort', cwd=root)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment