Convert commit_tree() to take strbuf as message
[gitweb.git] / builtin / commit.c
index 8f2bebecf313a0e4b742f9327ec178c7e3547dd2..849151e9517818203b9d7ba4368c87d26dd61ebf 100644 (file)
@@ -1483,7 +1483,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
                exit(1);
        }
 
-       if (commit_tree(sb.buf, active_cache_tree->sha1, parents, sha1,
+       if (commit_tree(&sb, active_cache_tree->sha1, parents, sha1,
                        author_ident.buf)) {
                rollback_index_files();
                die(_("failed to write commit object"));