Commit f90391ea5fdcd5ef972958ac375d8223a5045cc5

Carlos Martín Nieto 2013-04-18T14:47:54

treebuilder: don't overwrite the error message

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/tree.c b/src/tree.c
index 17b3c37..d2db840 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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 {