From a6c6a8ddb6bd6138e13434d0a44dc427e75546df Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 22 Mar 2013 14:18:18 +0000 Subject: bitbake: bitbake/fetch: Add git submodules fetcher This adds very basic git submodule support to the fetcher. It can be used by replacing a git:// url prefix with a gitsm:// prefix, otherwise behaviour is the same as the git fetcher. Whilst this code should be functional, its not as efficient as the usual git fetcher due to the need to checkout the tree to fetch/update the submodule information. git doesn't support submodule operations on the bare clones the standard git fetcher uses which is also problematic. This code does however give a starting point to people wanting to use submodules. (Bitbake rev: 25e0b0bc50114f1fbf955de23cc0c96f5f7a41e3) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/fetch2/__init__.py') diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 4cfe08957d..1bf67ddbdc 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -1497,6 +1497,7 @@ class Fetch(object): from . import cvs from . import git +from . import gitsm from . import local from . import svn from . import wget @@ -1513,6 +1514,7 @@ methods.append(local.Local()) methods.append(wget.Wget()) methods.append(svn.Svn()) methods.append(git.Git()) +methods.append(gitsm.GitSM()) methods.append(cvs.Cvs()) methods.append(svk.Svk()) methods.append(ssh.SSH()) -- cgit v1.2.3-54-g00ecf