- 首先,我做的事:混帳子模塊更新--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