当前位置: 首页 > 工具软件 > pack:tag > 使用案例 >

repo sync失败 remote: warning: suboptimal pack - out of memory

谈桐
2023-12-01
From ssh://127.0.0.1/home/git/git_repo/pre-demo/lichee/buildroot
 * [new tag]         exdroid4.4.4_r2-a83-v1.2.1 -> exdroid4.4.4_r2-a83-v1.2.1
 * [new tag]         exdroid4.4.4_r2-a83-v1.2rc2 -> exdroid4.4.4_r2-a83-v1.2rc2
remote: Counting objects: 2465309, done.
remote: Compressing objects: 100% (382123/382123), done.
Receiving objects: 100% (2465309/2465309), 562.23 MiB | 46.51 MiB/s, done.
remote: Total 2465309 (delta 2059131), reused 2464957 (delta 2058865)
Resolving deltas: 100% (2059131/2059131), done.
remote: warning: suboptimal pack - out of memory
remote: fatal: Out of memory, malloc failed (tried to allocate 428538881 bytes)
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header


解决方法:
在目录   /home/git/git_repo/pre-demo/lichee/
./repo.git/config
./tools.git/config
./manifest.git/config
./brandy.git/config
./linux-3.4.git/config
./.repo/repo/.git/config
./.repo/manifests/.git/config
./.repo/manifests.git/config
./buildroot.git/config

每个config添加
[pack]  
        window = 0
 类似资料: