在repo Issue上下载SEAndroid for AOSP

时间:2015-09-02 09:07:37

标签: git android-source repo

我引用this 下载SEAndroid但发生以下错误。

Retrying clone after deleting None
error: Cannot fetch system-vold (GitError: --force-sync not enabled; cannot overwrite a local work tree)
Fetching project platform/external/libssh2
Exception in thread Thread-37: 
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
  File "/home/lee/seandroid-5.1.1/.repo/repo/subcmds/sync.py", line 254, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
  File "/home/lee/seandroid-5.1.1/.repo/repo/subcmds/sync.py", line 297, in _FetchHelper
optimized_fetch=opt.optimized_fetch)
  File "/home/lee/seandroid-5.1.1/.repo/repo/project.py", line 1144, in Sync_NetworkHalf
self._InitGitDir(force_sync=force_sync)
  File "/home/lee/seandroid-5.1.1/.repo/repo/project.py", line 2198, in _InitGitDir
raise e
GitError: --force-sync not enabled; cannot overwrite a local work tree

Fetching projects:   7% (35/487)  
error: Exited sync due to fetch errors

请帮帮我

2 个答案:

答案 0 :(得分:2)

从现在开始,要在旧版本上重写较新版本的repo,请使用:

repo sync --force-sync

答案 1 :(得分:0)

您可以查看您的repo的版本,最新版本是1.21,您可以尝试旧版本。