Work around what appears to be a bug in git 1.7.9.5.

The return value of git diff wasn't reliable.