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/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 63ff00b165..052802e602 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -234,7 +234,7 @@ class Git(FetchMethod): def_destsuffix = "git/" destsuffix = ud.parm.get("destsuffix", def_destsuffix) - destdir = os.path.join(destdir, destsuffix) + destdir = ud.destdir = os.path.join(destdir, destsuffix) if os.path.exists(destdir): bb.utils.prunedir(destdir) -- cgit v1.2.3-54-g00ecf