$ git pull origin master
remote: Counting objects: 45, done.
error: pack-objects died of signal 91/38)
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
It really can be a memory issue, and to make sure we don't lose the solution here it is:
git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1"