summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d1efd8)
raw | patch | inline | side by side (parent: 3d1efd8)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Fri, 23 Feb 2007 02:17:51 +0000 (03:17 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 23 Feb 2007 06:30:33 +0000 (22:30 -0800) |
builtin-bundle.c | patch | blob | history |
diff --git a/builtin-bundle.c b/builtin-bundle.c
index 191ec5570f7e2d82653ff063f79b5e71218270b5..d74afaacd7b1ef30046e507927db219c27130f80 100644 (file)
--- a/builtin-bundle.c
+++ b/builtin-bundle.c
int argc, const char **argv)
{
int bundle_fd = -1;
- const char **argv_boundary = xmalloc((argc + 3) * sizeof(const char *));
+ const char **argv_boundary = xmalloc((argc + 4) * sizeof(const char *));
const char **argv_pack = xmalloc(4 * sizeof(const char *));
int pid, in, out, i, status;
char buffer[1024];
write_or_die(bundle_fd, bundle_signature, strlen(bundle_signature));
/* write prerequisites */
- memcpy(argv_boundary + 2, argv + 1, argc * sizeof(const char *));
+ memcpy(argv_boundary + 3, argv + 1, argc * sizeof(const char *));
argv_boundary[0] = "rev-list";
argv_boundary[1] = "--boundary";
- argv_boundary[argc + 1] = NULL;
+ argv_boundary[2] = "--pretty=oneline";
+ argv_boundary[argc + 2] = NULL;
out = -1;
pid = fork_with_pipe(argv_boundary, NULL, &out);
if (pid < 0)