如何处理在AOSP repo同步中出现的curl clone.bundle错误

35

从AOSP下载主分支后,我遇到了以下错误:

curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
为什么会出现这个错误?
日志:
 * [new tag]         android-cts-4.4_r1 -> android-cts-4.4_r1
 * [new tag]         android-sdk-4.4.2_r1 -> android-sdk-4.4.2_r1
Fetching projects:   7% (32/448)  Fetching project platform/packages/apps/Launcher3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
 94 88.8M   94 83.9M    0     0   294k      0  0:05:08  0:04:51  0:00:17  357kremote:        Sending approximately 108.84 MiB ...
remote: Counting objects: 9, done
remote: Finding sources: 100% (9/9)
 94 88.8M   94 84.1M    0     0   294k      0  0:05:08  0:04:52  0:00:16  303kReceiving     objects:   0% (1/44323)   
1个回答

51

Repo试图下载一个预打包的捆绑文件来引导每个git在通过Git的HTTP协议下载最新数据之前。后者在服务器端更昂贵,性能更差,因此捆绑文件允许下载缩短一些步骤。如果没有捆绑文件可用(例如在这种情况下),Repo将忽略它并继续进行。换句话说,请不要关注这个。

在较新的repo版本中,可以使用--no-clone-bundle选项来忽略此操作,例如:

repo sync --no-clone-bundle

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接