Now captures stderr from call to `git diff` and raises
an exception if this is not empty.