Merge branch 'jk/commit-buffer-length'
[gitweb.git] / builtin / commit.c
index 5e2221c8e8c842314cb177d55223e87328b3da26..84cec9a715341fedeabfaedfd82bbb64a4c3c255 100644 (file)
@@ -1745,8 +1745,8 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
                append_merge_tag_headers(parents, &tail);
        }
 
-       if (commit_tree_extended(&sb, active_cache_tree->sha1, parents, sha1,
-                                author_ident.buf, sign_commit, extra)) {
+       if (commit_tree_extended(sb.buf, sb.len, active_cache_tree->sha1,
+                        parents, sha1, author_ident.buf, sign_commit, extra)) {
                rollback_index_files();
                die(_("failed to write commit object"));
        }