From ddd2d09a59082939d287096997228f77528fc87a Mon Sep 17 00:00:00 2001 From: "machenbach@chromium.org" Date: Tue, 14 Oct 2014 12:00:22 +0000 Subject: [PATCH] Fix remote branch location in releases script. BUG=chromium:410721 LOG=n TEST=script_test.py TBR=tandrii@chromium.org Review URL: https://codereview.chromium.org/653923002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24596 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- tools/push-to-trunk/common_includes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/push-to-trunk/common_includes.py b/tools/push-to-trunk/common_includes.py index ed3b1fa62..e2bfdd598 100644 --- a/tools/push-to-trunk/common_includes.py +++ b/tools/push-to-trunk/common_includes.py @@ -375,12 +375,12 @@ class GitTagsOnlyMixin(VCInterface): return self.step.Git("tag").strip().splitlines() def GetBranches(self): - # Get relevant remote branches, e.g. "origin/branch-heads/3.25". + # Get relevant remote branches, e.g. "branch-heads/3.25". branches = filter( - lambda s: re.match(r"^origin/branch\-heads/\d+\.\d+$", s), + lambda s: re.match(r"^branch\-heads/\d+\.\d+$", s), self.step.GitRemotes()) - # Remove 'origin/branch-heads/' prefix. - return map(lambda s: s[20:], branches) + # Remove 'branch-heads/' prefix. + return map(lambda s: s[13:], branches) def MasterBranch(self): return "master" -- 2.34.1