git diff-index has exit code 0 when nothing has changed