From: borenet Date: Mon, 7 Nov 2016 17:05:16 +0000 (-0800) Subject: Fix zero-padding in gerrit ref X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~73^2~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e37992a2243d5e4bf6959616d7b081fcd1fa415;p=platform%2Fupstream%2FlibSkiaSharp.git Fix zero-padding in gerrit ref BUG=skia: NOTRY=true GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2484763002 Review-Url: https://codereview.chromium.org/2484763002 --- diff --git a/infra/bots/recipe_modules/core/api.py b/infra/bots/recipe_modules/core/api.py index c851ed4..74adf6a 100644 --- a/infra/bots/recipe_modules/core/api.py +++ b/infra/bots/recipe_modules/core/api.py @@ -116,8 +116,8 @@ class SkiaApi(recipe_api.RecipeApi): # Hack the patch ref if necessary. if self.m.properties.get('patch_storage', '') == 'gerrit': if self.m.bot_update._issue and self.m.bot_update._patchset: - self.m.bot_update._gerrit_ref = 'refs/changes/%d/%d/%d' % ( - int(str(self.m.bot_update._issue)[-2:]), + self.m.bot_update._gerrit_ref = 'refs/changes/%s/%d/%d' % ( + str(self.m.bot_update._issue)[-2:], self.m.bot_update._issue, self.m.bot_update._patchset, )