Other solutions didn’t work in my case, doing a garbage collection fixed it for me:
git gc --aggressive