[oe-commits] [bitbake] 01/03: fetch2/gitsm.py: Disable branch checking on submodules

git at git.openembedded.org git at git.openembedded.org
Thu Nov 1 14:07:07 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit fdc1dbf96f153b496de52acd8263366a1ff303ad
Author: Mark Hatle <mark.hatle at windriver.com>
AuthorDate: Wed Oct 31 15:21:43 2018 -0400

    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 at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/gitsm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py
index 0a982da..dbfa3a4 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list