我是在 windows 上安装 docker 容器,在容器中启动了 ubuntu 虚拟机;
然后是按照【清华大学开源软件镜像站 】https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/ 上的步骤做的: repo init 的指令我用的是这个:repo init -u git:// mirrors.ustc.edu.cn/aosp/platform/manifest -b android-7.1.1_r25 然后就提示: error.GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync .repo/manifests` to proceed. - HOME <https://tuna.moe/> - EVENTS <https://tuna.moe/events/> - BLOG <https://tuna.moe/blog/> - RSS <https://tuna.moe/feed.xml> - PODCAST <https://podcast.tuna.moe/> - huiyiqun <[email protected]> 于2018年9月9日周日 下午10:53写道: > 你的邮箱太糟糕了,这会影响整个邮件列表里的所有人的体验。 > > 描述一下你做的步骤吧,是从一个干净的目录开始同步还是下载了tuna的snapshot包?做了哪些操作? > > On Sunday, September 9, 2018 at 10:46:49 PM UTC+8, Shuaiqi Li wrote: >> >> 我执行的是 repo init 出现的问题。。。repo init 还没有执行完成时就出错了。。。 >> >> Shuaiqi Li >> 邮箱:[email protected] >> >> <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&name=Shuaiqi+Li&uid=lsq1968872434%40gmail.com&ftlId=1&items=%5B%22%E9%82%AE%E7%AE%B1%EF%BC%9Alsq1968872434%40gmail.com%22%5D> >> >> 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail88> 定制 >> >> 在2018年09月09日 22:19,huiyiqun <[email protected]> 写道: >> 你这重复发两遍我都不知道回哪边了。。。 >> >> 看起来你的 working directory 被你修改了,所以同步失败,repo diff 应该能看到你修改的内容。 >> >> 如果你想覆盖你的修改内容可以直接 `repo sync --force-sync .repo/manifests`,这个在你的错误信息里也提到了。 >> >> On Sunday, September 9, 2018 at 9:30:20 PM UTC+8, Shuaiqi Li wrote: >>> >>> * [new tag] webview-m40_r1 -> webview-m40_r1 >>> * [new tag] webview-m40_r2 -> webview-m40_r2 >>> * [new tag] webview-m40_r3 -> webview-m40_r3 >>> * [new tag] webview-m40_r4 -> webview-m40_r4 >>> Traceback (most recent call last): >>> File "/home/android/aosp711/.repo/repo/main.py", line 531, in <module> >>> _Main(sys.argv[1:]) >>> File "/home/android/aosp711/.repo/repo/main.py", line 507, in _Main >>> result = repo._Run(argv) or 0 >>> File "/home/android/aosp711/.repo/repo/main.py", line 180, in _Run >>> result = cmd.Execute(copts, cargs) >>> File "/home/android/aosp711/.repo/repo/subcmds/init.py", line 399, in >>> Execute >>> self._SyncManifest(opt) >>> File "/home/android/aosp711/.repo/repo/subcmds/init.py", line 245, in >>> _SyncManifest >>> m.MetaBranchSwitch() >>> File "/home/android/aosp711/.repo/repo/project.py", line 2913, in >>> MetaBranchSwitch >>> self.Sync_LocalHalf(syncbuf) >>> File "/home/android/aosp711/.repo/repo/project.py", line 1327, in >>> Sync_LocalHalf >>> self._InitWorkTree(force_sync=force_sync) >>> File "/home/android/aosp711/.repo/repo/project.py", line 2477, in >>> _InitWorkTree >>> raise e >>> error.GitError: --force-sync not enabled; cannot overwrite a local work >>> tree. If you're comfortable with the possibility of losing the work tree's >>> git metadata, use `repo sync --force-sync .repo/manifests` to proceed. >>> root@389234d4f518:/home/android/aosp711# --force-sync not enabled; >>> cannot overwrite a local work tree.error.GitError: --force-sync not >>> enabled; cannot overwrite a local work tree. >>> >>> >>> 每次到 webview 的时候,就会出现这个问题,按提示也没有用~~~ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TUNA 主邮件列表" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> >> -- > You received this message because you are subscribed to the Google Groups > "TUNA 主邮件列表" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TUNA 主邮件列表" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
