From: Daniel Barkalow Date: Tue, 30 Oct 2007 02:35:08 +0000 (-0400) Subject: Correct handling of upload-pack in builtin-fetch-pack X-Git-Tag: v1.5.4-rc0~306 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=09149c7809a37a52b38d8d7a0621e2fb8943d8fe;p=git.git Correct handling of upload-pack in builtin-fetch-pack The field in the args was being ignored in favor of a static constant Signed-off-by: Daniel Barkalow Thanked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c index 8f25d509a..8753840a8 100644 --- a/builtin-fetch-pack.c +++ b/builtin-fetch-pack.c @@ -11,11 +11,12 @@ static int transfer_unpack_limit = -1; static int fetch_unpack_limit = -1; static int unpack_limit = 100; -static struct fetch_pack_args args; +static struct fetch_pack_args args = { + /* .uploadpack = */ "git-upload-pack", +}; static const char fetch_pack_usage[] = "git-fetch-pack [--all] [--quiet|-q] [--keep|-k] [--thin] [--upload-pack=] [--depth=] [--no-progress] [-v] [:] [...]"; -static const char *uploadpack = "git-upload-pack"; #define COMPLETE (1U << 0) #define COMMON (1U << 1) @@ -773,7 +774,7 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args, st.st_mtime = 0; } - pid = git_connect(fd, (char *)dest, uploadpack, + pid = git_connect(fd, (char *)dest, args.uploadpack, args.verbose ? CONNECT_VERBOSE : 0); if (pid < 0) return NULL;