summaryrefslogtreecommitdiff
path: root/clone-pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'clone-pack.c')
-rw-r--r--clone-pack.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/clone-pack.c b/clone-pack.c
index 252fb80..064ec69 100644
--- a/clone-pack.c
+++ b/clone-pack.c
@@ -4,7 +4,7 @@
#include <sys/wait.h>
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=<git-upload-pack>] [<host>:]<directory> [<heads>]*";
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;