[Bitbake-dev] [PATCH] Add FETCHCMD parameter for git
rpurdie at rpsys.net
Mon Jan 25 12:31:47 CET 2010
On Mon, 2010-01-25 at 10:43 +0000, Martyn Welch wrote:
> The Git fetcher currently hardwires the git command to "git". Allow the
> path and any additional wrappers to the Git command to be provided via
> FETCHCMD functionality, as with some of the other fetchers.
> This requires FETCHCMD_svn to be defined in bitbake.conf.
I have to ask why? I suspect this is so you can deal with firewalls? If
thats the case I'd suggest you look at .gitconfig files instead as
they're powerful and don't need custom wrappers to git.
Poky has a function, generate_git_config(e) in
which allows construction of a .gitconfig file from two variables,
GIT_PROXY_IGNORE and GIT_PROXY_COMMAND.
This means you can have servers on both the sides of the firewall and
git can fetch from both.
More information about the bitbake-devel