I was working on Xamarin iOS project on my Mac machine where I had to pull a commit with large files (high resolution images). Surprisingly, it took longer than ever and failed after a while with error message :
packfile is truncated
I could not figure out why is pull not working with Xamarin Studio. Later I figured out the simple, silly solution for the same. Just close the file explorer (Finder, they say in the world of mac) and pull the code again. It started working again.
Also published on Medium.