Skip to content

Commit

Permalink
git-bundle: record commit summary in the prerequisite data
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho authored and Junio C Hamano committed Feb 23, 2007
1 parent 3d1efd8 commit 2392967
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builtin-bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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)
Expand Down

0 comments on commit 2392967

Please sign in to comment.