Windows/Cygwin - repo init fails

1,386 views
Skip to first unread message

Kaj Kandler

unread,
Nov 18, 2008, 11:09:34 AM11/18/08
to Repo and Gerrit Discussion
Hi,
I followed the instructions on https://sites.google.com/a/android.com/opensource/download
to initialize the Repo

repo init -u git://android.git.kernel.org/platform/manifest.git

It fails with:
kkandler@xxx00498 /cygdrive/c/Workspaces/Android/source
$ repo init -u git://androit.git.kernel.org/platform/manifest.git
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.

Getting repo ...
from git://android.kernel.org/tools/repo.git
remote: Counting objects: 223, done.
remote: Compressing objects: 100% (167/167), done.
Receiving objects: 41% (92/remote: Total 223 (delta 108), reused 146
(delta 45)223, 91.99 KiB | 173 KiB/s
Receiving objects: 100% (223/223), 145.68 KiB | 173 KiB/s, done.
Resolving deltas: 100% (108/108), done.
From git://android.kernel.org/tools/repo
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
* [new tag] v1.3.2 -> v1.3.2
From git://android.kernel.org/tools/repo
* [new tag] v1.0 -> v1.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
* [new tag] v1.0.9 -> v1.0.9
* [new tag] v1.1 -> v1.1
* [new tag] v1.2 -> v1.2
* [new tag] v1.3 -> v1.3
* [new tag] v1.3.1 -> v1.3.1
Getting manifest ...
from git://androit.git.kernel.org/platform/manifest.git
fatal: Unable to look up androit.git.kernel.org (No address associated
with name)
Traceback (most recent call last):
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/main.py",
line 202, in <module>
_Main(sys.argv[1:])
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/main.py",
line 186, in _Main
repo._Run(argv)
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/main.py",
line 96, in _Run
cmd.Execute(copts, cargs)
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/subcmds/
init.py", line 192, in Execute
self._SyncManifest(opt)
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/subcmds/
init.py", line 123, in _SyncManifest
m.Sync_LocalHalf()
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/project.py",
line 578, in Sync_LocalHalf
self._InitWorkTree()
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/project.py",
line 979, in _InitWorkTree
rev = self.bare_git.rev_parse('%s^0' % rev)
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/project.py",
line 1162, in runner
p.stderr))
error.GitError: manifests rev-parse: fatal: ambiguous argument 'refs/
remotes/origin/master^0': unknown revision or path
not in the working tree.
Use '--' to separate paths from revisions
------------
Environment is Cygwin on Windows XP and Python 2.5.1-2

What happens here?

Shawn Pearce

unread,
Nov 18, 2008, 11:21:10 AM11/18/08
to repo-d...@googlegroups.com
On Tue, Nov 18, 2008 at 08:09, Kaj Kandler <KajKa...@conficio.com> wrote:

$ repo init -u git://androit.git.kernel.org/platform/manifest.git
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.

Getting repo ...
  from git://android.kernel.org/tools/repo.git
remote: Counting objects: 223, done.

Hmm, so here it actually connects and starts to download...

Getting manifest ...
  from git://androit.git.kernel.org/platform/manifest.git
fatal: Unable to look up androit.git.kernel.org (No address associated
with name)

And then promptly fails to connect because android.git.kernel.org doesn't exist.  ?
 
Traceback (most recent call last):
...
File "/cygdrive/c/Workspaces/Android/source/.repo/repo/project.py",
line 578, in Sync_LocalHalf
   self._InitWorkTree()
 File "/cygdrive/c/Workspaces/Android/source/.repo/repo/project.py",
line 979, in _InitWorkTree
   rev = self.bare_git.rev_parse('%s^0' % rev)
 File "/cygdrive/c/Workspaces/Android/source/.repo/repo/project.py",
line 1162, in runner
   p.stderr))
error.GitError: manifests rev-parse: fatal: ambiguous argument 'refs/
remotes/origin/master^0': unknown revision or path
not in the working tree.
Use '--' to separate paths from revisions

It never should have gotten this far if the network connection failed earlier with a DNS error.  Looks like we didn't catch the error and kept right on going.  Which is a minor bug in repo.  Your problem is the DNS error earlier; not being able to find android.git.kernel.org.

Kaj Kandler

unread,
Nov 18, 2008, 11:31:47 AM11/18/08
to Repo and Gerrit Discussion
Oh I see, typo androit instead of android.

Gee.

K<o>

On Nov 18, 11:21 am, Shawn Pearce <s...@google.com> wrote:

Jeff Bailey

unread,
Nov 18, 2008, 1:55:48 PM11/18/08
to repo-d...@googlegroups.com
Did it work after that?  I don't think we have a success report on cygwin yet.

Jeff Bailey >|< Google, Inc. >|< +1 650 214-5404
Reply all
Reply to author
Forward
0 new messages