Mirroring Android with --mirror

226 views
Skip to first unread message

Aravind

unread,
Feb 11, 2009, 11:31:24 AM2/11/09
to Repo and Gerrit Discussion
Hello All

I have been trying to mirror the Android tree since yesterday and have
been seeing strange behavior in different instances.

Instance 1:
=======

I had a old "repo" repository which i had downloaded, lets say about 2
months ago.
Using this repo command i managed to mirror the Android tree
successfully without any problems.

Instance 2:
========

Today on a another server i tried to download the latest "repo"
repository and followed the same process of mirroring the code, but i
failed with errors.
Here is what i did.

git clone git://android.git.kernel.org/tools/repo.git
repo/repo init -u git://android.git.kernel.org/platform/manifest.git -
b cupcake –mirror

I get the error like below

Getting manifest ...

from git://android.git.kernel.org/platform/manifest.git

remote: Counting objects: 61, done.

remote: Compressing objects: 100% (21/21), done.

remote: Total 61 (delta 22), reused 59 (delta 20)

Unpacking objects: 100% (61/61), done.

From git://android.git.kernel.org/platform/manifest
* [new branch] cdma-import -> origin/cdma-import
* [new branch] cupcake -> origin/cupcake
* [new branch] donut -> origin/donut
* [new branch] master -> origin/master
* [new branch] release-1.0 -> origin/release-1.0
From git://android.git.kernel.org/platform/manifest
* [new tag] android-1.0 -> android-1.0
Branch default set up to track remote branch refs/remotes/origin/
cupcake.
Switched to a new branch "default"
fatal: manifest 'default.xml' not available
fatal: refusing to mirror /home/motopull/moto-cupcake-test/repo/.git

But if i dont issue the --mirror option then it works fine.

Any ideas why this might happen with the new repo tool?

-Mahishi

Shawn Pearce

unread,
Feb 11, 2009, 6:28:59 PM2/11/09
to repo-d...@googlegroups.com
Do you have any url.insteadof's in your ~/.gitconfig?

I just ran this locally and appears to be working fine.

$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake --mirror
Getting repo ...
   from git://android.git.kernel.org/tools/repo.git
remote: Counting objects: 279, done.
bjects: 100% (128/128), done.
remote: Total 279 (delta 142), reused 273 (delta 138)
Receiving objects: 100% (279/279), 154.51 KiB, done.
Resolving deltas: 100% (142/142), done.
From git://android.git.kernel.org/tools/repo
 * [new branch]      for-gerrit2 -> origin/for-gerrit2
...

Getting manifest ...
   from git://android.git.kernel.org/platform/manifest.git
...

From git://android.git.kernel.org/platform/manifest
 * [new tag]         android-1.0 -> android-1.0
Switched to a new branch "default"

repo mirror initialized in /usr/local/google/users/sop/newcakes

Aravind

unread,
Feb 12, 2009, 8:03:37 AM2/12/09
to Repo and Gerrit Discussion
No i dont have .insteadof in .gitconfig.
I tried on two different hosts and in both i get the same result

From git://android.git.kernel.org/platform/manifest
* [new tag] android-1.0 -> android-1.0
Branch default set up to track remote branch refs/remotes/origin/
cupcake.
Switched to a new branch "default"
fatal: manifest 'default.xml' not available
fatal: refusing to mirror /home/teleca-git/tmp/repo/.git

On Feb 12, 12:28 am, Shawn Pearce <s...@google.com> wrote:
> Do you have any url.insteadof's in your ~/.gitconfig?
>
> I just ran this locally and appears to be working fine.
>
> $ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
> --mirror
> Getting repo ...
>    from git://android.git.kernel.org/tools/repo.git
> remote: Counting objects: 279, done.
> bjects: 100% (128/128), done.
> remote: Total 279 (delta 142), reused 273 (delta 138)
> Receiving objects: 100% (279/279), 154.51 KiB, done.
> Resolving deltas: 100% (142/142), done.
> From git://android.git.kernel.org/tools/repo
>  * [new branch]      for-gerrit2 -> origin/for-gerrit2
> ...
> Getting manifest ...
>    from git://android.git.kernel.org/platform/manifest.git
> ...
> From git://android.git.kernel.org/platform/manifest
>  * [new tag]         android-1.0 -> android-1.0
> Switched to a new branch "default"
>
> repo mirror initialized in /usr/local/google/users/sop/newcakes
>
> On Wed, Feb 11, 2009 at 08:31, Aravind <amahi...@gmail.com> wrote:
>
> > Hello All
>
> > I have been trying to mirror the Android tree since yesterday and have
> > been seeing strange behavior in different instances.
>
> > Instance 1:
> > =======
>
> > I had a old "repo" repository which i had downloaded, lets say about 2
> > months ago.
> > Using this repo command i managed to mirror the Android tree
> > successfully without any problems.
>
> > Instance 2:
> > ========
>
> > Today on a another server i tried to download the latest "repo"
> > repository and followed the same process of mirroring the code, but i
> > failed with errors.
> > Here is what i did.
>
> > git clone git://android.git.kernel.org/tools/repo.git
> > repo/repo <http://android.git.kernel.org/tools/repo.git%0Arepo/repo> init

Shawn Pearce

unread,
Feb 12, 2009, 11:26:49 AM2/12/09
to repo-d...@googlegroups.com
Oh.  Now I get it.

When you ran repo out of its own repository, it tried to clone itself into the mirror.  It refused to do that.

repo is designed to have you copy the "repo" script into your $PATH somewhere, and then just always run that.  That "repo" script last changed Thu Dec 18 07:21:32 2008 -0800.  It doesn't modify often.  You shouldn't need to worry about cloning repo in order to run it.
Reply all
Reply to author
Forward
0 new messages