diff options
-rw-r--r-- | core/save-git.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/save-git.c b/core/save-git.c index 2d58f931a..6f1cc4646 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -1196,6 +1196,11 @@ static int write_git_tree(git_repository *repo, struct dir *tree, git_oid *resul /* .. write out the resulting treebuilder */ ret = git_treebuilder_write(result, tree->files); + if (ret && verbose) { + const git_error *gerr = giterr_last(); + if (gerr) + fprintf(stderr, "tree_insert failed with return %d error %s\n", ret, gerr->message); + } /* .. and free the now useless treebuilder */ git_treebuilder_free(tree->files); |