Own repo repository.

40 views
Skip to first unread message

Serdar

unread,
May 28, 2009, 4:47:53 PM5/28/09
to Repo and Gerrit Discussion
I guys,

I tried to create an own repo repository but I failed.
I did these steps:

installing git.
setting up git with GITDAEMON_OPTS="--syslog --export-all --base-path=/
var/git /var/git"
setting up webgit http://git.moko.serdar-dere.net
and after that I made these steps:
cd /var/git
repo init -u git://git.koolu.org/freerunner/platform/manifest.git -b
cupcake
repo sync

I thought that was enough but after trying to pull cupcake like this
didn't work:
serdar@Fidestation ~/openmoko/myand $ ./bin/repo init -u
git://serdar-dere.net/cupcake
Getting repo ...
from git://git.android.kernel.org/tools/repo.git
git.android.kernel.org[0: 208.69.32.132]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

what did I wrong, what can I do?

Greets Serdar.

Serdar

unread,
May 30, 2009, 6:02:36 PM5/30/09
to Repo and Gerrit Discussion
hmm can nobody help me to set up a repository with repo?

On 28 Mai, 22:47, Serdar <serdard...@web.de> wrote:
> I guys,
>
> I tried to create an own repo repository but I failed.
> I did these steps:
>
> installing git.
> setting up git with GITDAEMON_OPTS="--syslog --export-all --base-path=/
> var/git /var/git"
> setting up webgithttp://git.moko.serdar-dere.net

Gergely Kis

unread,
May 31, 2009, 1:17:37 PM5/31/09
to repo-d...@googlegroups.com
Hi,

I looked at your gitweb, and it looks like that you have run repo init without the --mirror flag

Try this:
repo init -u it://git.koolu.org/freerunner/platform/manifest.git -b cupcake --mirror
repo sync

Now you will have the same repository structure as on the upstream server.
Before you can use repo, you need to edit the manifest, so assuming that you are in the same directory where you executed repo sync:
mkdir work
cd work
git clone ../platform/manifest.git manifest
cd manifest
edit default.xml to refer to git://git.moko.serdar-dere.net instead of the upstream server (in your case git.koolu.org)
git commit -m 'Created custom manifest'
git push

Now, you can go to your work directory, and execute:
repo init -u git://git.moko.serdar-dere.net/platform/manifest.git
repo sync

Of course if you want to use repo upload ... etc., you still have to set up Gerrit. Also, you might want to use a different branch for your manifest, depending on what you want to achieve.

Best Regards,
Gergely

Gergely Kis

unread,
Jun 1, 2009, 2:46:44 AM6/1/09
to repo-d...@googlegroups.com


On Sun, May 31, 2009 at 7:17 PM, Gergely Kis <gerge...@gmail.com> wrote:
[...]


Now, you can go to your work directory, and execute:
repo init -u git://git.moko.serdar-dere.net/platform/manifest.git
repo sync

Of course if you want to use repo upload ... etc., you still have to set up Gerrit. Also, you might want to use a different branch for your manifest, depending on what you want to achieve.
One more thing:
If you are trying to do anything serious with this, you should probably set up your own manifest repository, which contains your customized manifest. This way the mirrored manifest repository remains pristine.
 
Best Regards,
Gergely


Serdar

unread,
Jun 1, 2009, 1:45:55 PM6/1/09
to Repo and Gerrit Discussion
If I do that like you told, I cannot find a manifest.git in /
cupcakeroot/platform a manifest.git but /cupcakeroot/manifest.git/

repo init -u it://git.koolu.org/freerunner/platform/manifest.git -b
cupcake --mirror
repo sync

that's what I did and the following instructions were a git clone.

so did you meant clone /cupcakeroot/manifest.git/ to /cupcakeroot/work/
manifest?

greets Serdar

Samuel

unread,
Jun 3, 2009, 6:26:44 AM6/3/09
to Repo and Gerrit Discussion
I'm new to how to set up a repository or a set of repositories with
git and gitweb on server or host to make people access it or them!!
Let's say, that's an animated example of setting up repo(s) as shown
below,
android.git.kernel.org.

For the procedures as well as principles of how to build up what is
akin to the above site created by google, however, they have yet to be
found out at least for my part!!

So, just hope that there are any guys being able to provide any help
for the previous troubles!! That would greatly appreciated!!
Reply all
Reply to author
Forward
0 new messages