下载android代码出现error: unable to create file tests/P_str_escape/str\\escape.rs

来源:互联网 发布:赛宝软件评测中心 编辑:程序博客网 时间:2024/05/17 08:56

error: unable to create file tests/P_str_escape/str\\escape.rs: No such file or directory

  File "/home/linyang/aosp_L/.repo/repo/project.py", line 2486, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree


解决方法:

sync时加trace参数

repo -h

 --trace         trace git command execution


repo --trace sync -j4 -cdf

出现

: export GIT_DIR=/home/linyang/aosp_L/.repo/projects/frameworks/compile/slang.git
: git rev-parse --verify refs/tags/android-5.0.2_r3^0 1>| 2>|


: cd /home/linyang/aosp_L/frameworks/compile/slang
: git read-tree --reset -u -v HEAD 1>| 2>|
error: unable to create file tests/P_str_escape/str\\escape.rs: No such file or directory
Traceback (most recent call last):
  File "/home/linyang/aosp_L/.repo/repo/main.py", line 531, in <module>
    _Main(sys.argv[1:])
  File "/home/linyang/aosp_L/.repo/repo/main.py", line 507, in _Main
    result = repo._Run(argv) or 0
  File "/home/linyang/aosp_L/.repo/repo/main.py", line 180, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/linyang/aosp_L/.repo/repo/subcmds/sync.py", line 821, in Execute
    project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
  File "/home/linyang/aosp_L/.repo/repo/project.py", line 1327, in Sync_LocalHalf
    self._InitWorkTree(force_sync=force_sync)
  File "/home/linyang/aosp_L/.repo/repo/project.py", line 2486, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree


<your_path>\frameworks\compile\slang\tests\P_str_escape 这一级目录已经存在了,只需要创建str 目录,并在str 目录中创建 escape.rs文件(文件内容为空)。

参考 http://blog.csdn.net/u013553529/article/details/50616725

阅读全文
0 0
原创粉丝点击