git-bundle: record commit summary in the prerequisite data
Johannes Schindelin committed
Feb 23, 2007 at 03:17 UTC
239296770dae75e21c179733785731ec6ffae1f5
1 file changed
+4
-3
builtin-bundle.c
+4
-3
@@ -267,7 +267,7 @@ static int create_bundle(struct bundle_header *header, const char *path,
267
int argc, const char **argv)
268
{
269
int bundle_fd = -1;
270
- const char **argv_boundary = xmalloc((argc + 3) * sizeof(const char *));
270
+ const char **argv_boundary = xmalloc((argc + 4) * sizeof(const char *));
271
const char **argv_pack = xmalloc(4 * sizeof(const char *));
272
int pid, in, out, i, status;
273
char buffer[1024];
@@ -282,10 +282,11 @@ static int create_bundle(struct bundle_header *header, const char *path,
282
write_or_die(bundle_fd, bundle_signature, strlen(bundle_signature));
283
284
/* write prerequisites */
285
- memcpy(argv_boundary + 2, argv + 1, argc * sizeof(const char *));
285
+ memcpy(argv_boundary + 3, argv + 1, argc * sizeof(const char *));
286
argv_boundary[0] = "rev-list";
287
argv_boundary[1] = "--boundary";
288
- argv_boundary[argc + 1] = NULL;
288
+ argv_boundary[2] = "--pretty=oneline";
289
+ argv_boundary[argc + 2] = NULL;
290
out = -1;
291
pid = fork_with_pipe(argv_boundary, NULL, &out);
292
if (pid < 0)