summaryrefslogtreecommitdiff
path: root/builtin-bundle.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-02-23 03:17:51 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-22 22:30:33 -0800
commit239296770dae75e21c179733785731ec6ffae1f5 (patch)
tree92da7f5bb37251aa4b0fd73bfcf03891812cd17b /builtin-bundle.c
parent3d1efd8f1ddc0de423426b5a2a8c6c0a30f1d46e (diff)
downloadgit-239296770dae75e21c179733785731ec6ffae1f5.tar.gz
git-bundle: record commit summary in the prerequisite data
Diffstat (limited to 'builtin-bundle.c')
-rw-r--r--builtin-bundle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin-bundle.c b/builtin-bundle.c
index 191ec5570f..d74afaacd7 100644
--- a/builtin-bundle.c
+++ b/builtin-bundle.c
@@ -267,7 +267,7 @@ static int create_bundle(struct bundle_header *header, const char *path,
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];
@@ -282,10 +282,11 @@ static int create_bundle(struct bundle_header *header, const char *path,
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)