summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2018-10-31 15:21:43 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-07 23:08:55 +0000
commita28637abbceb05b52a6e38ab2340d3da9d0b1b37 (patch)
tree4a471d01fcd64e90ec5ea402121e69ffed26e42a /bitbake
parentf059696c6018bfa92c3f86107130c80bc413616d (diff)
downloadpoky-a28637abbceb05b52a6e38ab2340d3da9d0b1b37.tar.gz
bitbake: fetch2/gitsm.py: Disable branch checking on submodules
Submodules by definition refer to a specific commit, not branch. If we don't ignore the branch, then any commits on a submodule on a branch different then the original module will trigger a failure that the commit is not on the branch. (Bitbake rev: fdc1dbf96f153b496de52acd8263366a1ff303ad) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index 0a982da9c6..dbfa3a4f73 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -92,7 +92,7 @@ class GitSM(Git):
92 url = uris[module].replace('%s:' % proto, 'gitsm:', 1) 92 url = uris[module].replace('%s:' % proto, 'gitsm:', 1)
93 url += ';protocol=%s' % proto 93 url += ';protocol=%s' % proto
94 url += ";name=%s" % module 94 url += ";name=%s" % module
95 url += ";bareclone=1;nocheckout=1" 95 url += ";bareclone=1;nocheckout=1;nobranch=1"
96 96
97 ld = d.createCopy() 97 ld = d.createCopy()
98 # Not necessary to set SRC_URI, since we're passing the URI to 98 # Not necessary to set SRC_URI, since we're passing the URI to