From e1807bfcf80b7b5512489f434b64c9a76a8f4e03 Mon Sep 17 00:00:00 2001 From: Hyokeun Jeon Date: Tue, 13 Aug 2019 21:05:12 +0900 Subject: [PATCH] Missing work_branch init routine Change-Id: If51f6d2a3ab19e8b09f8399533f5017569825fd8 --- job_submit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/job_submit.py b/job_submit.py index 52409db..28820ec 100755 --- a/job_submit.py +++ b/job_submit.py @@ -495,6 +495,8 @@ def main(build_type, build, event, sr_count): # get project mappings from git-obs-mapping and git-ref-mapping if git_branch.endswith('_tpk'): # ABS - mappings w/o _tpk postfix(only for profiles). + # Set default to the current branch + work_branch = git_branch if os.getenv('ABS_SUPPORTED_PROFILES', None): for sp in os.getenv('ABS_SUPPORTED_PROFILES').split(','): work_branch = work_branch.replace('_%s_tpk' % sp.lower(), '') -- 2.7.4