summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-22 14:18:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-25 15:58:31 +0000
commita6c6a8ddb6bd6138e13434d0a44dc427e75546df (patch)
tree087ba3568fcf2cab03a875264330ae0a27059b3d /bitbake/lib/bb/fetch2/git.py
parent8054716544c2f4f817fb4ca0d57dd5ae243aed4e (diff)
downloadpoky-a6c6a8ddb6bd6138e13434d0a44dc427e75546df.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
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):
234 def_destsuffix = "git/" 234 def_destsuffix = "git/"
235 235
236 destsuffix = ud.parm.get("destsuffix", def_destsuffix) 236 destsuffix = ud.parm.get("destsuffix", def_destsuffix)
237 destdir = os.path.join(destdir, destsuffix) 237 destdir = ud.destdir = os.path.join(destdir, destsuffix)
238 if os.path.exists(destdir): 238 if os.path.exists(destdir):
239 bb.utils.prunedir(destdir) 239 bb.utils.prunedir(destdir)
240 240