treebuilder: don't overwrite the error message

This commit is contained in:
Carlos Martín Nieto 2013-04-18 14:47:54 +02:00
parent 53cb87575d
commit f90391ea5f

View File

@ -525,7 +525,6 @@ static int write_tree(
/* Write out the subtree */
written = write_tree(&sub_oid, repo, index, subdir, i);
if (written < 0) {
tree_error("Failed to write subtree", subdir);
git__free(subdir);
goto on_error;
} else {