testnode: update corrupted index test for git 2.17.0
The way of truncating the index file was an error in git 2.11.0, but it was not an error with git 2.17.0.
The way of truncating the index file was an error in git 2.11.0, but it was not an error with git 2.17.0.