bitbake: bitbake/fetch: Add git submodules fetcher
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Mar 2013 14:18:18 +0000 (14:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Mar 2013 15:58:31 +0000 (15:58 +0000)
commit8f36ab4c0c62e3a1fbf83c1f61b717d5e2b1e804
treec280513eda97b73a890513516b4f880375c4be2d
parentdd954f385deed62f2cd001527fea7400a86c9562
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>
bitbake/lib/bb/fetch2/__init__.py
bitbake/lib/bb/fetch2/git.py
bitbake/lib/bb/fetch2/gitsm.py [new file with mode: 0644]