Skip to content

Commit c818e74

Browse files
rakaerotechgitster
authored andcommitted
commit-tree: do not complete line in -F input
"git commit-tree -F <file>", unlike "cat <file> | git commit-tree" (i.e. feeding the same contents from the standard input), added a missing final newline when the input ended in an incomplete line. Correct this inconsistency by leaving the incomplete line as-is, as erring on the side of not touching the input is preferrable and expected for a plumbing command like "commit-tree". Signed-off-by: Ross Kabus <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent edc74bc commit c818e74

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builtin/commit-tree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
102102
if (fd && close(fd))
103103
die_errno("git commit-tree: failed to close '%s'",
104104
argv[i]);
105-
strbuf_complete_line(&buffer);
106105
continue;
107106
}
108107

0 commit comments

Comments
 (0)