From 6ec311da34cbbc8a571bf889b6ef00c4efb441b5 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 13 Jul 2005 20:25:54 -0700 Subject: [PATCH] clone-pack and clone-script: documentation and add a missing parameter. While adding the documentation for these two commands, I noticed that the name of the program on the other end (git-upload-pack) is already almost configurable but git-clone-pack lacked command line parameter parsing to actually use anything but default, so I introduced --exec= like other remote commands while I was at it. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- clone-pack.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clone-pack.c') diff --git a/clone-pack.c b/clone-pack.c index 252fb80efd..064ec6964d 100644 --- a/clone-pack.c +++ b/clone-pack.c @@ -4,7 +4,7 @@ #include static int quiet; -static const char clone_pack_usage[] = "git-clone-pack [host:]directory [heads]*"; +static const char clone_pack_usage[] = "git-clone-pack [-q] [--exec=] [:] []*"; static const char *exec = "git-upload-pack"; struct ref { @@ -196,6 +196,10 @@ int main(int argc, char **argv) quiet = 1; continue; } + if (!strncmp("--exec=", arg, 7)) { + exec = arg + 7; + continue; + } usage(clone_pack_usage); } dest = arg; -- cgit v1.3