I know many of us came across this problem but no one really bothered to bring it up to notice and provide solution in public. It’s good to share small things even . It saves some time.
I guess the error that you might be facing is as followed.
File “/home/kaushik/beagledroid/.repo/repo/main.py”, line 235, in <module> _Main(sys.argv[1:]) File “/home/kaushik/beagledroid/.repo/repo/main.py”, line 217, in _Main repo._Run(argv) File “/home/kaushik/beagledroid/.repo/repo/main.py”, line 123, in _Run cmd.Execute(copts, cargs) File “/home/kaushik/beagledroid/.repo/repo/subcmds/prune.py”, line 28, in Exec for project in self.GetProjects(args): File “/home/kaushik/beagledroid/.repo/repo/command.py”, line 63, in GetProject all = self.manifest.projects File “/home/kaushik/beagledroid/.repo/repo/manifest_xml.py”, line 169, in proj self._Load() File “/home/kaushik/beagledroid/.repo/repo/manifest_xml.py”, line 202, in _Loa b = m.GetBranch(m.CurrentBranch).merge File “/home/kaushik/beagledroid/.repo/repo/project.py”, line 271, in CurrentBr b = self.work_git.GetHead() File “/home/kaushik/beagledroid/.repo/repo/project.py”, line 1242, in GetHead fd = open(path, ‘rb’)IOError: [Errno 2] No such file or directory: ‘/home/kaushik/beagledroid/.repo/m
The problem of this sort happens due to some stale version of repo sync performed.
Solution to that is to run the command ” repo prune” from the shell.
Detailed guide could be found at: http://source.android.com/download/using-repo