Fix bare git mounting to work with packed objects.