Anybody met this issue when trying to get source using Repo?

285 views
Skip to first unread message

las

unread,
Oct 27, 2008, 11:27:42 PM10/27/08
to Repo and Gerrit Discussion
After intalling Git and Repo, I tried to get the source following
the instructions from
the android source website. However , following error happened , does
anyone have
any idea on this , I checked the file refs/remotes/origin/master , it
seems that only
retrieve a check sum file there , I don't know if this is the problem.




user@ubuntu8041:~/android/.repo/manifests/.git/refs/remotes/origin$
repo init -u git://android.git.kernel.org/platform/manifest.git
Traceback (most recent call last):
File "/home/user/android/.repo/repo/main.py", line 198, in ?
_Main(sys.argv[1:])
File "/home/user/android/.repo/repo/main.py", line 184, in _Main
repo._Run(argv)
File "/home/user/android/.repo/repo/main.py", line 94, in _Run
cmd.Execute(copts, cargs)
File "/home/user/android/.repo/repo/subcmds/init.py", line 185, in
Execute
self._SyncManifest(opt)
File "/home/user/android/.repo/repo/subcmds/init.py", line 116, in
_SyncManifest
m.Sync_LocalHalf()
File "/home/user/android/.repo/repo/project.py", line 524, in
Sync_LocalHalf
lost = self._revlist(not_rev(rev), HEAD)
File "/home/user/android/.repo/repo/project.py", line 934, in
_revlist
return self.work_git.rev_list(*args)
File "/home/user/android/.repo/repo/project.py", line 1078, in
rev_list
raise GitError('%s rev-list %s: %s' % (
error.GitError: manifests rev-list ('^refs/remotes/origin/master',
'HEAD'): fatal: Not a git repository


Your help is greatly appreciated .Thanks!

Shawn Pearce

unread,
Oct 29, 2008, 7:43:00 PM10/29/08
to repo-d...@googlegroups.com
Hmm, why are you cd'd deep inside an already initialized repo?

las

unread,
Oct 29, 2008, 10:18:16 PM10/29/08
to Repo and Gerrit Discussion
The result is the same if I was in directory /home/user/android/.
I just got the log when I was in that directory to check what is in
that file.
And today it seems all is ok , repo init finished. I donot have any
idea what happened , nothing changed.
However , When I use "repo sync " to sync source , error like
below keeps poping up.
"fatal: read error (Connection reset by peer)
fatal: protocol error: bad pack header
error: Cannot fetch platform/packages/apps/HTMLViewer
"
in different packages,projects and stops the scripts running.



On 10月30日, 上午7时43分, "Shawn Pearce" <s...@google.com> wrote:
> Hmm, why are you cd'd deep inside an already initialized repo?
>

Shawn Pearce

unread,
Oct 30, 2008, 10:59:11 AM10/30/08
to repo-d...@googlegroups.com
On Wed, Oct 29, 2008 at 19:18, las <jilt...@gmail.com> wrote:

 However , When I use   "repo sync " to sync source , error like
below keeps poping up.
"fatal: read error (Connection reset by peer)
fatal: protocol error: bad pack header
error: Cannot fetch platform/packages/apps/HTMLViewer
"
 in different packages,projects and stops the scripts running.

This is caused by network errors.  The connection is being closed before all of the data for the response header can be received, let alone any other data.  Retrying a little bit later usually works for most people.  I've spoken with the admins behind android.git.kernel.org and they haven't seen any unusual problems on their Git hosting servers.

You aren't the only one to report transient connection errors during "repo sync".  I'm starting to consider adding an automatic retry into repo, because the most common failure appears to be this transient connection problem.
Reply all
Reply to author
Forward
0 new messages