Commit 9736fe89 authored by rmistry's avatar rmistry Committed by Commit bot

Skip apply_gerrit rebase when there is a rebase failure.

Not doing so causes a failure in the 'git checkout $base_rev' step as visible here: https://build.chromium.org/p/client.skia.fyi/builders/Infra-PerCommit-Trybot/builds/4995
This causes the checkout to remain in the "rebase in progress" state.

BUG=chromium:645955
BUG=skia:5749

Review-Url: https://codereview.chromium.org/2328313002
parent c6787971
......@@ -604,7 +604,11 @@ def apply_gerrit_ref(gerrit_repo, gerrit_ref, root, gerrit_reset,
try:
ok = False
git('checkout', '-b', temp_branch_name, cwd=root)
git('rebase', base_rev, cwd=root)
try:
git('rebase', base_rev, cwd=root)
finally:
# Abort the rebase since there were failures.
git('rebase', '--abort', cwd=root)
# Get off of the temporary branch since it can't be deleted otherwise.
cur_rev = git('rev-parse', 'HEAD', cwd=root).strip()
......
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