From 43eeca04a7fe00332fe8c4723e29fa82a5304b13 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 1 Nov 2012 20:24:43 +0100 Subject: index: Fix tests --- src/stash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stash.c') diff --git a/src/stash.c b/src/stash.c index 9c9c5dce7..1d6940e3c 100644 --- a/src/stash.c +++ b/src/stash.c @@ -115,7 +115,7 @@ static int build_tree_from_index(git_tree **out, git_index *index) { git_oid i_tree_oid; - if (git_tree_create_fromindex(&i_tree_oid, index) < 0) + if (git_index_write_tree(&i_tree_oid, index) < 0) return -1; return git_tree_lookup(out, git_index_owner(index), &i_tree_oid); -- cgit v1.2.3