diff options
| author | Russell Belfer <rb@github.com> | 2012-11-01 14:16:19 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-11-01 14:16:19 -0700 |
| commit | 60ad7d52b8828a7c1fd0720e166d00a6ea3fe6bc (patch) | |
| tree | ed40a431c2884cb87ea489640e4217463df9e325 /src/stash.c | |
| parent | dbd6850d06111eb0761499d7c876ff7cd4ad57fa (diff) | |
| parent | 1e808f9cda598fef83ff93deb007212ebf61be6d (diff) | |
| download | libgit2-60ad7d52b8828a7c1fd0720e166d00a6ea3fe6bc.tar.gz | |
Merge pull request #1037 from libgit2/index-open-cleanup
Some more changes to the Index API
Diffstat (limited to 'src/stash.c')
| -rw-r--r-- | src/stash.c | 2 |
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); |
