aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar Ben Wagner <benjaminwagner@google.com>2017-06-12 16:22:12 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-13 15:18:22 +0000
commit1791a064f1c1256cf29c69a5eef88de66ee6e794 (patch)
treea2c9ba6b81dbee09e47f4a066699767c08934991 /infra
parent7cd974fc7d7d1c197f961136775e188468f02ec9 (diff)
[recipes] Fix internal_test tryjobs.
>>> 'internal_test.git'.rstrip('.git') 'internal_tes' Change-Id: If023784a7387a89b2ba1972ea43d68a0c07df635 Reviewed-on: https://skia-review.googlesource.com/19546 Reviewed-by: Eric Boren <borenet@google.com> Commit-Queue: Ben Wagner <benjaminwagner@google.com>
Diffstat (limited to 'infra')
-rw-r--r--infra/bots/recipe_modules/core/api.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/infra/bots/recipe_modules/core/api.py b/infra/bots/recipe_modules/core/api.py
index 430fa023ca..f3486fd11b 100644
--- a/infra/bots/recipe_modules/core/api.py
+++ b/infra/bots/recipe_modules/core/api.py
@@ -75,7 +75,9 @@ class SkiaApi(recipe_api.RecipeApi):
patch_repo = main.url
if self.m.properties.get('patch_repo'):
patch_repo = self.m.properties['patch_repo']
- patch_root = patch_repo.split('/')[-1].rstrip('.git')
+ patch_root = patch_repo.split('/')[-1]
+ if patch_root.endswith('.git'):
+ patch_root = patch_root[:-4]
if self.m.vars.need_pdfium_checkout:
# Skia is a DEP of PDFium; the 'revision' property is a Skia revision, and