diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-22 14:18:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-25 15:58:31 +0000 |
commit | a6c6a8ddb6bd6138e13434d0a44dc427e75546df (patch) | |
tree | 087ba3568fcf2cab03a875264330ae0a27059b3d /bitbake/lib/bb/fetch2/__init__.py | |
parent | 8054716544c2f4f817fb4ca0d57dd5ae243aed4e (diff) | |
download | poky-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__.py | 2 |
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 | ||
1498 | from . import cvs | 1498 | from . import cvs |
1499 | from . import git | 1499 | from . import git |
1500 | from . import gitsm | ||
1500 | from . import local | 1501 | from . import local |
1501 | from . import svn | 1502 | from . import svn |
1502 | from . import wget | 1503 | from . import wget |
@@ -1513,6 +1514,7 @@ methods.append(local.Local()) | |||
1513 | methods.append(wget.Wget()) | 1514 | methods.append(wget.Wget()) |
1514 | methods.append(svn.Svn()) | 1515 | methods.append(svn.Svn()) |
1515 | methods.append(git.Git()) | 1516 | methods.append(git.Git()) |
1517 | methods.append(gitsm.GitSM()) | ||
1516 | methods.append(cvs.Cvs()) | 1518 | methods.append(cvs.Cvs()) |
1517 | methods.append(svk.Svk()) | 1519 | methods.append(svk.Svk()) |
1518 | methods.append(ssh.SSH()) | 1520 | methods.append(ssh.SSH()) |