This morning, I started getting this error from git:
fatal: index file smaller than expected fatal: git status --porcelain failed
fatal: index file smaller than expected
fatal: git status --porcelain failed
The index file has become corrupted, but it is easily re-creatable. Just remove it...
rm .git/index
Then you can re-add the files you're trying to stage.