Commit 40b08124f26e6a1328fa35fc1c0f69911d31a2d8

Carlos Martín Nieto 2016-08-30T12:11:02

Merge pull request #3915 from pks-t/pks/index-collision-test-leak tests: index: do not re-allocate index

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/index/collision.c b/tests/index/collision.c
index ad5827e..41eb7bf 100644
--- a/tests/index/collision.c
+++ b/tests/index/collision.c
@@ -79,8 +79,6 @@ void test_index_collision__add_with_highstage_2(void)
 {
 	git_index_entry entry;
 
-	cl_git_pass(git_repository_index(&g_index, g_repo));
-
 	memset(&entry, 0, sizeof(entry));
 	entry.ctime.seconds = 12346789;
 	entry.mtime.seconds = 12346789;