Adding a local git repository in Android's manifest.xml

1,322 views
Skip to first unread message

Srinidhi K V

unread,
Apr 26, 2011, 1:09:52 AM4/26/11
to repo-d...@googlegroups.com
Hi All,

I am trying to add a local GIT repository to the current Android repository.

What I am shooting for? 
When I use "repo sync mylocalproject" It should sync from the local git repository (say ~/repositories/mylocalproject)

What did I try?

1. I added a remote in .repo/manifests/default.xml

<remote   name="myremote"
               fetch="/home/srinidhi/repositories/" />

and

<project path="external/mylocalproject" name="platform/external/mylocalproject" remote="myremote" />

2. Added mylocalproject in projects.list
3. Added mylocalproject.git in .repo/projects/external/
4. When I tried repo sync mylocalproject, I hit an error saying project not found.


Can any one help to resolve this issue?

Thanks
Srinidhi

Magnus Bäck

unread,
Apr 26, 2011, 10:48:46 AM4/26/11
to repo-d...@googlegroups.com
On Tuesday, April 26, 2011 at 07:09 CEST,

Srinidhi K V <srini...@yahoo.co.in> wrote:

> I am trying to add a local GIT repository to the current Android
> repository.
>
> What I am shooting for?
> When I use "repo sync mylocalproject" It should sync from the local
> git repository (say ~/repositories/mylocalproject)
>
> What did I try?
>
> 1. I added a remote in .repo/manifests/default.xml
>
> <remote name="myremote"
> fetch="/home/srinidhi/repositories/" />
>
> and
>
> <project path="external/mylocalproject"
> name="platform/external/mylocalproject" remote="myremote" />
>
> 2. Added mylocalproject in projects.list

That file is automatically updated by Repo. Don't bother changing it.

> 3. Added mylocalproject.git in .repo/projects/external/
> 4. When I tried repo sync mylocalproject, I hit an error saying project not
> found.
>
>
> Can any one help to resolve this issue?

Judging by your later message in another thread it would seem that this
problem has been resolved, right?

--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

Reply all
Reply to author
Forward
0 new messages