Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Convert commit_tree() to take strbuf as message
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 8f2bebecf313a0e4b742f9327ec178c7e3547dd2..849151e9517818203b9d7ba4368c87d26dd61ebf 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-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"));