Merge branch 'tr/bash-read-unescaped'
[gitweb.git] / builtin / commit-tree.c
index b9c331225f0d5c960e9e03f2c92d498f8f01f74c..05353c30f292684b44b42f7f744d8eb1b7062f69 100644 (file)
@@ -98,7 +98,7 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
                        die_errno("git commit-tree: failed to read");
        }
 
-       if (commit_tree(buffer.buf, tree_sha1, parents, commit_sha1, NULL)) {
+       if (commit_tree(&buffer, tree_sha1, parents, commit_sha1, NULL)) {
                strbuf_release(&buffer);
                return 1;
        }