关于AOSP回购同步的curl clone.bundle错误如何处理

问题描述 投票:29回答:1

从AOSP下载master分支时,出现以下错误:

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)   
android android-source repo
1个回答
47
投票

Repo尝试下载预打包的捆绑文件以引导每个git,然后再通过Git的HTTP协议下载最新数据。后者在服务器端更昂贵,并且导致较差的性能,因此捆绑文件允许下载进行某些操作。如果捆绑文件不可用(如本例所示),则Repo将忽略该文件并继续执行。换句话说,不要对此进行任何关注。

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

repo sync --no-clone-bundle
© www.soinside.com 2019 - 2024. All rights reserved.