Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

repo about .git/HEAD: error: manifest missing or unreadable -- please run init

Tags:

git

android

I was downloading android 4.4 source code using repo(in ubuntu). Last time I killed repo process by pressing the key combination: Ctrl+Z, and when I started it this time by using the command: "repo init" and "repo sync", I got the following errors:

error: in sync: [Errno 2] No such file or directory: u'/home/ubuntu/workspace/packages/apps/VoiceDialer/.git/HEAD' error: manifest missing or unreadable -- please run init

I've tried "run init", which displays no errors. But the problem remains after running "repo init". What should I do? Is there any way to tell repo to reproduce the ./git/HEAD file?

like image 287
Searene Avatar asked Feb 12 '23 22:02

Searene


2 Answers

I solved the problem by deleting the VoiceDialer folder, then running "repo init" and "repo sync". With the .git folder in it, it may not "repo init" successfully.

like image 141
Searene Avatar answered Feb 15 '23 08:02

Searene


I also get the problem. Here are the steps: 1. delete the folder 2. 'repo sync' the folder again.

like image 24
cnbleu Avatar answered Feb 15 '23 07:02

cnbleu