Browse Source

Merge branch 'rk/commit-tree-make-F-verbatim' into maint

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
maint
Junio C Hamano 7 years ago
parent
commit
aec2eb8bfd
  1. 1
      builtin/commit-tree.c

1
builtin/commit-tree.c

@ -102,7 +102,6 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix) @@ -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;
}


Loading…
Cancel
Save