Skip to contentSkip to conversation

recipetool: create: fix SRCBRANCH not being passed to params

PATCH New Tuomas Salokanto 1 participant 1 message Jan 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipetool: create: fix SRCBRANCH not being passed to params

When explicitly passing a branch using --srcbranch in 'devtool add' or 'recipetool create', the branch name is not included in the params of bb.fetch2.encodeurl and default 'master' branch is used instead.

---
 scripts/lib/recipetool/create.py | 1 +
 1 file changed, 1 insertion(+)
scripts/lib/recipetool/create.py +1 -0
index 4c4bbadb4c..cc0b4f0e53 100644
@@ -460,6 +460,7 @@ def create_recipe(args):
                 logger.error('branch= parameter and -B/--srcbranch option cannot both be specified - use one or the other')
                 sys.exit(1)
             srcbranch = args.srcbranch
+            params['branch'] = srcbranch
         nobranch = params.get('nobranch')
         if nobranch and srcbranch:
             logger.error('nobranch= cannot be used if you specify a branch')
Signature · 1 line
2.24.0.windows.2