use git_tree_owner in Index_diff_to_tree()

This commit is contained in:
Nico von Geyso
2013-05-18 15:49:30 +02:00
parent b4656cc99c
commit 99263af164

View File

@@ -162,7 +162,7 @@ Index_diff_to_tree(Index *self, PyObject *args)
if (!PyArg_ParseTuple(args, "O!|i", &TreeType, &py_tree, &opts.flags)) if (!PyArg_ParseTuple(args, "O!|i", &TreeType, &py_tree, &opts.flags))
return NULL; return NULL;
repo = self->repo->repo; repo = git_tree_owner(py_tree->tree);
err = git_diff_tree_to_index(&diff, repo, py_tree->tree, self->index, &opts); err = git_diff_tree_to_index(&diff, repo, py_tree->tree, self->index, &opts);
if (err < 0) if (err < 0)
return Error_set(err); return Error_set(err);