X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=receive-pack.c;h=eae31e370d44988b9a8ee9ddb6c3191b4f18bf3e;hb=90768daaa006516c7ae69ed89d7c2e67243dfac1;hp=e79de917b542eb35d6b5752837b25ccae897646e;hpb=58e3fb40f7ca1c28f9105c15166884f80bb22e55;p=git.git diff --git a/receive-pack.c b/receive-pack.c index e79de917..eae31e37 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -6,7 +6,7 @@ static const char receive_pack_usage[] = "git-receive-pack "; -static const char unpacker[] = "git-unpack-objects"; +static char *unpacker[] = { "unpack-objects", NULL }; static int report_status = 0; @@ -37,7 +37,7 @@ struct command { const char *error_string; unsigned char old_sha1[20]; unsigned char new_sha1[20]; - char ref_name[0]; + char ref_name[FLEX_ARRAY]; /* more */ }; static struct command *commands = NULL; @@ -257,7 +257,7 @@ static void read_head_info(void) static const char *unpack(int *error_code) { - int code = run_command(unpacker, NULL); + int code = run_command_v_opt(1, unpacker, RUN_GIT_CMD); *error_code = 0; switch (code) {