summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 51b616bad7..4186295cdd 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -165,7 +165,10 @@ class Git(FetchMethod):
165 ud.nocheckout = 1 165 ud.nocheckout = 1
166 166
167 ud.unresolvedrev = {} 167 ud.unresolvedrev = {}
168 branches = ud.parm.get("branch", "master").split(',') 168 branches = ud.parm.get("branch", "").split(',')
169 if branches == [""] and not ud.nobranch:
170 bb.warn("URL: %s does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls." % ud.url)
171 branches = ["master"]
169 if len(branches) != len(ud.names): 172 if len(branches) != len(ud.names):
170 raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url) 173 raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url)
171 174