Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-11-01 23:24:43 +0400
committerVicent Marti <tanoku@gmail.com>2012-11-01 23:24:43 +0400
commit43eeca04a7fe00332fe8c4723e29fa82a5304b13 (patch)
tree7d638e9f21c5fb848c9c27ca1bd62a763c35ec29 /src/stash.c
parent276ea401b3a45c85e49182f39db00ca5447aa340 (diff)
index: Fix tests
Diffstat (limited to 'src/stash.c')
-rw-r--r--src/stash.c2
1 files changed, 1 insertions, 1 deletions
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);