summaryrefslogtreecommitdiff
path: root/poky/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'poky/scripts/lib/recipetool/create.py')
-rw-r--r--poky/scripts/lib/recipetool/create.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/poky/scripts/lib/recipetool/create.py b/poky/scripts/lib/recipetool/create.py
index 5cd72ea0a7..a6607b97c6 100644
--- a/poky/scripts/lib/recipetool/create.py
+++ b/poky/scripts/lib/recipetool/create.py
@@ -389,6 +389,9 @@ def reformat_git_uri(uri):
parms.update({('protocol', 'ssh')})
elif (scheme == "http" or scheme == 'https' or scheme == 'ssh') and not ('protocol' in parms):
parms.update({('protocol', scheme)})
+ # We assume 'master' branch if not set
+ if not 'branch' in parms:
+ parms.update({('branch', 'master')})
# Always append 'git://'
fUrl = bb.fetch2.encodeurl(('git', host, path, user, pswd, parms))
return fUrl