Commit c912229e1f7ce2ef0bda110e8d66d43c9d6be32c

Vicent Martí 2011-05-08T14:00:06

Merge pull request #172 from carlosmn/valgrind ref test: update a forgotten repo -> repo2

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/t10-refs.c b/tests/t10-refs.c
index db767a1..ee006a8 100644
--- a/tests/t10-refs.c
+++ b/tests/t10-refs.c
@@ -292,7 +292,7 @@ BEGIN_TEST(create2, "create a new OID reference")
 	/* Similar test with a fresh new repository */
 	must_pass(git_repository_open(&repo2, TEMP_REPO_FOLDER));
 
-	must_pass(git_reference_lookup(&looked_up_ref, repo, new_head));
+	must_pass(git_reference_lookup(&looked_up_ref, repo2, new_head));
 	must_be_true(git_oid_cmp(&id, git_reference_oid(looked_up_ref)) == 0);
 
 	close_temp_repo(repo2);