From bf2c277530cd81790e5f9d6ddd212270b7456f0e Mon Sep 17 00:00:00 2001 From: Vincent A Date: Sun, 2 Sep 2018 14:28:54 +0200 Subject: [PATCH] stable_backport: support choosing backport version with env var --- tools/stable_backport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/stable_backport.py b/tools/stable_backport.py index 3f7e9fc0ea..5a7ba803c5 100755 --- a/tools/stable_backport.py +++ b/tools/stable_backport.py @@ -6,7 +6,7 @@ import sys import re from contextlib import contextmanager -from os import system, path, makedirs +from os import system, path, makedirs, getenv from subprocess import check_output, STDOUT, CalledProcessError from collections import defaultdict import shutil @@ -14,8 +14,8 @@ from termcolor import colored -STABLE_VERSION = '1.3' -DEVEL_BRANCH = 'master' +STABLE_VERSION = getenv('WEBOOB_BACKPORT_STABLE', '1.3') +DEVEL_BRANCH = getenv('WEBOOB_BACKPORT_DEVEL', 'master') @contextmanager -- GitLab