summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.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/__init__.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/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 2 insertions, 0 deletions
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):
1497 1497
1498from . import cvs 1498from . import cvs
1499from . import git 1499from . import git
1500from . import gitsm
1500from . import local 1501from . import local
1501from . import svn 1502from . import svn
1502from . import wget 1503from . import wget
@@ -1513,6 +1514,7 @@ methods.append(local.Local())
1513methods.append(wget.Wget()) 1514methods.append(wget.Wget())
1514methods.append(svn.Svn()) 1515methods.append(svn.Svn())
1515methods.append(git.Git()) 1516methods.append(git.Git())
1517methods.append(gitsm.GitSM())
1516methods.append(cvs.Cvs()) 1518methods.append(cvs.Cvs())
1517methods.append(svk.Svk()) 1519methods.append(svk.Svk())
1518methods.append(ssh.SSH()) 1520methods.append(ssh.SSH())