summaryrefslogtreecommitdiffstats
path: root/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:57:23 +0000
commit25e0b0bc50114f1fbf955de23cc0c96f5f7a41e3 (patch)
treeba8ebc6b5ae88bcdd3fedcbda2deef47e9363cb9 /lib/bb/fetch2/git.py
parentca7cd6c1318e0ef066f9e12e7516a47b2af3a7d1 (diff)
downloadbitbake-25e0b0bc50114f1fbf955de23cc0c96f5f7a41e3.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-rw-r--r--lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 63ff00b16..052802e60 100644
--- a/lib/bb/fetch2/git.py
+++ b/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)