Fix git interface for merge script.

BUG=chromium:410721
LOG=n
TEST=script_test.py
R=tandrii@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24244 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 68b817e5
......@@ -371,6 +371,8 @@ class GitReadOnlyMixin(VCInterface):
return "origin/candidates"
def RemoteBranch(self, name):
if name in ["candidates", "master"]:
return "origin/%s" % name
return "origin/branch-heads/%s" % name
......
......@@ -1203,7 +1203,7 @@ LOG=N
Cmd("git status -s -b -uno", "## some_branch\n"),
Cmd("git fetch", ""),
Cmd("git branch", " branch1\n* branch2\n"),
Cmd("git checkout -b %s origin/branch-heads/candidates" %
Cmd("git checkout -b %s origin/candidates" %
TEST_CONFIG["BRANCHNAME"], ""),
Cmd(("git log --format=%H --grep=\"Port r12345\" "
"--reverse origin/master"),
......
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