testnode: fix flaky test_05f_ResetCorruptedRepository
instead of randomly truncating the existing file, which sometimes does not cause an invalid index, create an invalid index from scratch. I used this blog post https://mincong.io/2018/04/28/git-index/#2-inside-gitindex for a description of the index format.
Showing
Please register or sign in to comment