Commit 44972873 by Edward Thomson

stash: propagate the error when writing a tree

parent 4ea3eebf
...@@ -106,7 +106,7 @@ static int build_tree_from_index(git_tree **out, git_index *index) ...@@ -106,7 +106,7 @@ static int build_tree_from_index(git_tree **out, git_index *index)
git_oid i_tree_oid; git_oid i_tree_oid;
if ((error = git_index_write_tree(&i_tree_oid, index)) < 0) if ((error = git_index_write_tree(&i_tree_oid, index)) < 0)
return -1; return error;
return git_tree_lookup(out, git_index_owner(index), &i_tree_oid); return git_tree_lookup(out, git_index_owner(index), &i_tree_oid);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment