- 首先,我做的事:混帐子模块更新--init
Cloning into '_aaa'... Checking connectivity... done. Submodule path '_aaa': checked out '87311dd0bb0ac9b77cd9bbac0a15671858f0cf17'
- ,则:混帐取--recurse-子模块
Fetching submodule _base Fetching submodule _aaa Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information. Counting objects: 21678, done. Compressing objects: 100% (20602/20602), done. Writing objects: 100% (21678/21678), done. Total 21678 (delta 8973), reused 0 (delta 0) Removing duplicate objects: 100% (256/256), done. fatal: Out of memory? mmap failed: Cannot allocate memory fatal: Out of memory? mmap failed: Cannot allocate memory error: failed to run prune
最近的更新是相当大的1GB左右,但没有超过40MB的文件。混帐获取:无法分配内存
我在服务器上的内存量从512M增加到1024M,但问题仍然存在。我也尝试了与git gc,window,compress等不同的游戏,没有任何结果。
作为一个替代的解决方案,你可以取一个子模块在同一时间,而不是使用'--recurse-submodules' – rednaw
我已经尝试过了,得到了同样的错误。 – user1934268
你看过这个问题吗? http://stackoverflow.com/q/6775242/1248175 – rednaw