repo sync fails with 'Not a git repository'

479 views
Skip to first unread message

Simon Glass

unread,
Dec 1, 2016, 12:46:00 PM12/1/16
to Chromium OS dev
Hi,

I've tried removing things but I'm not sure how to fix this. Is there
a way to 'force' pulling down the mesa repository?

$ repo sync -l
Syncing work tree: 88% (367/417) fatal: index file smaller than expected
Syncing work tree: 92% (384/417) Traceback (most recent call last):
File "/home/sjg/c/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/home/sjg/c/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/home/sjg/c/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/home/sjg/c/.repo/repo/subcmds/sync.py", line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/home/sjg/c/.repo/repo/project.py", line 1363, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/sjg/c/.repo/repo/project.py", line 2501, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/sjg/c/.repo/repo/project.py", line 2700, in rev_list
(self._project.name, str(args), p.stderr))
error.GitError: chromiumos/third_party/mesa rev-list
('^129178893b2260df22db96327c5ca9c2ce7db046', 'HEAD', '--'): fatal:
Not a git repository (or any of the parent directories): .git

Regards,
Simon

Mike Frysinger

unread,
Dec 1, 2016, 3:09:04 PM12/1/16
to Simon Glass, Chromium OS dev
in my experience, when repo gets wedged like that, it frequently stays wedged.

you could try doing `rm -rf src/third_party/mesa/` and then do another repo sync.
-mike


--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en



Simon Glass

unread,
Dec 2, 2016, 12:27:44 PM12/2/16
to Mike Frysinger, Chromium OS dev
Hi Mike,

Thanks - I had tried deleting various things including that to no
avail. With your encouragement I deleted a lot more things. The
--trace feature helps a bit to see what is actually wrong.

But the only thing that seemed to fix it was rsyncing various
directories from my desktop machine to the laptop. About 8 of them
were somehow corrupted. Everything is fine now and 'repo sync'
completes!

Regards,
Simon
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages