Hi StackOverflow Team!
Recently I got strange responses from git I use on my SiteGround hosting. When I run the git status
command in my repository I get the following error:
serv01.ams38.siteground.eu [~/www/cledu (cart-editor)] git status
fatal: unable to create threaded lstat
serv01.ams38.siteground.eu [~/www/cledu (cart-editor)]
On the net I found few people having similar issues and I tried these commands:
git config --global pack.windowMemory "100m"
git config --global pack.packSizeLimit "100m"
git config --global pack.threads "1"
git config --global pack.deltaCacheSize "512MiB"
But it didn't solve the issue.
Can you help me to solve this?
Best, Chris.
Increasing the virtual memory limit may help. We have fixed several such cases by increasing ulimit -v to 1048576 (1024M). This is an arbitrary value, which I believe is not unreasonably high and yet enough.
If the resource limit can't be removed by the hosting provider, you could consider using git config to disable preloading of the index (threaded lstat).
git config core.preloadIndex false
If you need that setting when cloning the initial repository, then you will need to set it globally.
git config --global core.preloadIndex false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With