Commit 6d1b04383ed0744b0346dc9834e34ef7b634a2e0

Philip Kelley 2014-06-07T12:18:24

Win32: Fix failing clone_mirror test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests/online/clone.c b/tests/online/clone.c
index e269771..8a2a64f 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -194,6 +194,9 @@ void test_online_clone__clone_mirror(void)
 	git_remote_free(remote);
 	git_reference_free(head);
 	git_buf_free(&path);
+	git_repository_free(g_repo);
+	g_repo = NULL;
+
 	cl_fixture_cleanup("./foo.git");
 }