Merge branch 'rk/commit-tree-make-F-verbatim'
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:57 +0000 (10:47 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:57 +0000 (10:47 +0900)
Unlike "git commit-tree < file", "git commit-tree -F file" did not
pass the contents of the file verbatim and instead completed an
incomplete line at the end, if exists. The latter has been updated
to match the behaviour of the former.

* rk/commit-tree-make-F-verbatim:
commit-tree: do not complete line in -F input

builtin/commit-tree.c
index 19e898fa4e46da9271de950ad9add75af2051ed6..2177251e247cc144d6ac8619fa5940262430d50a 100644 (file)
@@ -102,7 +102,6 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
                        if (fd && close(fd))
                                die_errno("git commit-tree: failed to close '%s'",
                                          argv[i]);
-                       strbuf_complete_line(&buffer);
                        continue;
                }