X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=clone-pack.c;h=2aa522089e94f9c2e3b8887efb769f654a34ebde;hb=2c38fe4c574812601c8338d8db1ba0d2528b5ae4;hp=252fb80efd55a4cc4fa679411c4570093500f4ad;hpb=5ccdf4cef212183597a0893c23c91da2ded80694;p=git.git diff --git a/clone-pack.c b/clone-pack.c index 252fb80e..2aa52208 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 { @@ -30,7 +30,7 @@ static struct ref *get_remote_refs(int fd, int nr_match, char **match) if (line[len-1] == '\n') line[--len] = 0; if (len < 42 || get_sha1_hex(line, sha1)) - die("git-fetch-pack: protocol error - expected ref descriptor, got '%s¤'", line); + die("git-clone-pack: protocol error - expected ref descriptor, got '%s'", line); refname = line+41; len = len-40; if (nr_match && !path_match(refname, nr_match, match)) @@ -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;