6b4f2e6bd0
git reads an existing empty file as a truncated index and dies with "index file smaller than expected", so mktemp's own file cannot be used as GIT_INDEX_FILE. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>