Made test index_write_test() remove the test file it has created. It can now be run twice in a row without failing.
diff --git a/tests/t06-index.c b/tests/t06-index.c
index 72702e8..f46dfb3 100644
--- a/tests/t06-index.c
+++ b/tests/t06-index.c
@@ -146,6 +146,8 @@ BEGIN_TEST("write", index_write_test)
must_pass(git_filelock_commit(&out_file));
git_index_free(index);
+
+ gitfo_unlink("index_rewrite");
END_TEST