Commit 59fbaa4b0a0877473e258ef19072cadd86f7ec2e

Carlos Martín Nieto 2014-09-24T11:20:43

cherrypick: the name is still git_cherry_pick A backported fix makes use of the new name for git_cherry_pick (namely git_cherrypick), but we still need to use the old one in the maint branch.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/cherrypick/workdir.c b/tests/cherrypick/workdir.c
index 36e5a93..39eeee4 100644
--- a/tests/cherrypick/workdir.c
+++ b/tests/cherrypick/workdir.c
@@ -122,7 +122,7 @@ void test_cherrypick_workdir__empty_result(void)
 
 	git_oid_fromstr(&cherry_oid, cherrypick_oid);
 	cl_git_pass(git_commit_lookup(&commit, repo, &cherry_oid));
-	cl_git_pass(git_cherrypick(repo, commit, NULL));
+	cl_git_pass(git_cherry_pick(repo, commit, NULL));
 
 	/* The resulting tree should not have changed, the change was already on HEAD */
 	cl_assert(merge_test_index(repo_index, merge_index_entries, 3));