Commit db818dbd authored by machenbach's avatar machenbach Committed by Commit bot

Fix candidate lookup in auto push script.

NOTRY=true
BUG=chromium:431669
LOG=n
TBR=jkummerow@chromium.org
TEST=./script_test.py

Review URL: https://codereview.chromium.org/765943002

Cr-Commit-Position: refs/heads/master@{#25558}
parent 16d9146a
......@@ -75,7 +75,7 @@ class FetchCandidate(Step):
def RunStep(self):
self.Git("fetch origin +refs/heads/candidate:refs/heads/candidate")
self["candidate"] = self.Git("show-ref -s refs/heads/candidate")
self["candidate"] = self.Git("show-ref -s refs/heads/candidate").strip()
class CheckLastPush(Step):
......
......@@ -956,7 +956,7 @@ def get_list():
URL("https://v8-status.appspot.com/current?format=json",
"{\"message\": \"Tree is throttled\"}"),
Cmd("git fetch origin +refs/heads/candidate:refs/heads/candidate", ""),
Cmd("git show-ref -s refs/heads/candidate", "abc123"),
Cmd("git show-ref -s refs/heads/candidate", "abc123\n"),
Cmd(("git log -1 --format=%H --grep=\""
"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\""
" origin/candidates"), "push_hash\n"),
......
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