aboutsummaryrefslogtreecommitdiffstats
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-01 14:04:11 +0000
commitfdc1dbf96f153b496de52acd8263366a1ff303ad (patch)
treebf7a7c8060cd5532c6e6ec7759c2b6ff6a869800
parent701f76f773a6e77258f307a4f8e2ec1a8552f6f3 (diff)
downloadbitbake-fdc1dbf96f153b496de52acd8263366a1ff303ad.tar.gz
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. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/gitsm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py
index 0a982da9c..dbfa3a4f7 100644
--- a/lib/bb/fetch2/gitsm.py
+++ b/lib/bb/fetch2/gitsm.py
@@ -92,7 +92,7 @@ class GitSM(Git):
url = uris[module].replace('%s:' % proto, 'gitsm:', 1)
url += ';protocol=%s' % proto
url += ";name=%s" % module
- url += ";bareclone=1;nocheckout=1"
+ url += ";bareclone=1;nocheckout=1;nobranch=1"
ld = d.createCopy()
# Not necessary to set SRC_URI, since we're passing the URI to