Am 11.06.2013 07:47, schrieb Ruthy Katz:
Hi Ruthy,
> I do have an access to the remote server and the ability to configurate it.
> On the server the repository is a bare repository.
> I don't know what to do and how to configurate it...
> If you have any suggestions they will be most welcome!
I assume c:\repo is your bare repository on the server.
I would do the following:
1.) Backup the bare repository on the server to c:\repo-backup
From now on work exclusively on the backup!
2.) Check the repository for consistency
git fsck --full --strict
3.) Do manual garbage collection
git gc
Retry cloning the repository.
If that does still not work, it might be the case that delta compression
on the server is tried and leads to memory exhaustion.
Do you have added large (> 100MB) files recently and already pushed to
the repository?
If yes, I'd suggest to set low enough limits for the window sizes.
My settings on the server side are
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
bigFileThreshold = 256m
[pack]
deltaCacheSize = 256m
windowMemory = 256m
which are good enough to be able to clone repositories with >1GB binary
files inside. Note that my settings are for a 64-bit git on linux.
To prevent delta compression of big files on the client side beforehand
use the delta flag of git attributes [1]
# contents of top level .gitattribute
*.rar -delta
Hope that helps
Thomas
[1]:
https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html