error occur when I use the command "repo sync"

2,024 views
Skip to first unread message

Warren

unread,
May 19, 2011, 9:48:57 PM5/19/11
to repo-d...@googlegroups.com
Hi everyone
I download the Android source in one computer(Ubuntu OS) and the copy all the files to another computer(Ubuntu OS too). When I use the command "repo sync" in the new computer, the console show me some error as below. Can you help me to solve this problem, thank you very much.

~/AndroidSrc$ repo sync

Traceback (most recent call last):
  File "/home/cai/AndroidSrc/.repo/repo/main.py", line 238, in <module>
    _Main(sys.argv[1:])
  File "/home/cai/AndroidSrc/.repo/repo/main.py", line 220, in _Main
    repo._Run(argv)
  File "/home/cai/AndroidSrc/.repo/repo/main.py", line 125, in _Run
    cmd.Execute(copts, cargs)
  File "/home/cai/AndroidSrc/.repo/repo/subcmds/sync.py", line 375, in Execute
    if mp.HasChanges:
  File "/home/cai/AndroidSrc/.repo/repo/project.py", line 1928, in HasChanges
    elif self._revlist(not_rev(HEAD), revid):
  File "/home/cai/AndroidSrc/.repo/repo/project.py", line 1585, in _revlist
    return self.work_git.rev_list(*a, **kw)
  File "/home/cai/AndroidSrc/.repo/repo/project.py", line 1730, in rev_list
    p.stderr))
error.GitError: manifests rev-list ('^HEAD', '683590c9559372e99802b5fe8c2e631b69e270f7', '--'): fatal: bad object 683590c9559372e99802b5fe8c2e631b69e270f7



Shawn Pearce

unread,
May 20, 2011, 9:38:13 AM5/20/11
to repo-d...@googlegroups.com

On May 19, 2011 9:33 PM, "Warren" <scu...@gmail.com> wrote:
>
> I download the Android source in one computer(Ubuntu OS) and the copy all the files to another computer(Ubuntu OS too). When I use the command "repo sync" in the new computer, the console show me some error as below. Can you help me to solve this problem, thank you very much.

...


> error.GitError: manifests rev-list ('^HEAD', '683590c9559372e99802b5fe8c2e631b69e270f7', '--'): fatal: bad object 683590c9559372e99802b5fe8c2e631b69e270f7

Looks like the copy is incomplete or damaged the files under the .repo/ directory. I would copy it again and make sure you get everything. What tool did you use to copy the files? Most UNIX tools are 8 bit clean and should not damage the binary files under .repo/.

Warren

unread,
May 23, 2011, 1:31:03 AM5/23/11
to repo-d...@googlegroups.com
Hi Shawn,
Thank you for you respond. I use a usb flash disk(NTFS format) to copy the file.
Today I package and copy it, the problem is solved. Thank you very much.
Reply all
Reply to author
Forward
0 new messages