On Thu, Oct 14, 2010 at 11:29 AM, Ash Charles <[email protected]> wrote:

> Hi,
>
> Can anyone recommend a method of fetching from a local git repository
> in Bitbake?  I have a recipe that works nicely with code I've uploaded
> to a public git repository. I have some changes in my local version of
> the repository that are not ready to be pushed to the public
> repository but I'd like to build the code with bitbake to test drive
> it.
>
> Normally:
> SRCREV = "master"
> SRC_URI = "git://github.com/ashcharles/Transport-Test.git;protocol=git"
>
> Things I've tried:
> - setting SRC_URI =
> "git:///home/ash/Programs/Transport/.git;protocol=git"  ---> bitbake
> parse error despite the fact that git clone
> /home/ash/Programs/Transport/.git works just fine.


protocol controls what url it passes to git.  with a protocol of git, it
isn't cloning /home/ash/Programs/Transport/.git, it's cloning
git:///home/ash/Programs/Transport/.git.  You'd want to set protocol=file, i
suspect -- and if git doesn't support file:// urls, we can enhance the
fetcher to drop the url scheme prefix when protocol is file.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to