2012-01-27 9 views
7

sigo recibiendo este error al intentar hacer un tirón o un git gcerror al tirar de la advertencia: Paquete subóptima - sin memoria

advertencia: Paquete subóptima - sin memoria objetos Compresión: 100% (10955/10955), hecho. fatal: memoria insuficiente, malloc falló (intentó asignar 827101023 bytes) error: error al ejecutar reempaquetar

¿Qué debo hacer para solucionar este problema?

Respuesta

13

This thread sugiere

run « git repack -adf --window=memory » on the repo where memory is escalated appropriately for your machine.

Eso es más o menos la misma solución que para la pregunta SO "Repack of Git repository fails".

git repack -a -d --window-memory 10m --max-pack-size 20m 

Sin embargo, Mark Longair se warn you that:

Your solution has got you a working copy locally and remotely, but will cause problems again when the remote repository decides to repack itself again.

Así configurar pack.windowMemory y pack.packSizeLimit es una solución mucho más seguro, así como la comprobación de la configuración de core.packedxxx y core.deltaxxx.

Para msysgit en Windows, este comentario menciones:

git config --global pack.windowMemory 256m 

worked for me
(had have memory alloc error on 64 bit windows (Git-1.7.6-preview20110708.exe)

0

Correr

git repack -a -d --window-memory 10m --max-pack-size 20m 

realmente no resolver mi problema.

Al eliminar el repositorio y luego volver a clonar, se solucionó el problema.

Cuestiones relacionadas