在使用代理翻墙下载Android源码的时候,执行repo init时报:
Get https://android.googlesource.com/platform/manifest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
fatal: Out of memory, malloc failed (tried to allocate 1048576000 bytes)
fatal: Out of memory, malloc failed (tried to allocate 1048576000 bytes)
fatal: cannot obtain manifest https://android.googlesource.com/platform/manifest
我通过执行一下命令解决:
git config --global http.postbuffer 524288000
git config --global pack.windowMemory 256m