X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=send-pack.c;h=02d1d52c2475759f2b206912bbd626f749a6b750;hb=d289d13625ffa568c3007c3620eaafeb521ac06d;hp=4c6adabdac808aa70f9040ec6733581f2ee00c0d;hpb=584c6cc91a61ec615419452ca540041be6ba9f38;p=git.git diff --git a/send-pack.c b/send-pack.c index 4c6adabd..02d1d52c 100644 --- a/send-pack.c +++ b/send-pack.c @@ -2,7 +2,8 @@ #include "refs.h" #include "pkt-line.h" -static const char send_pack_usage[] = "git-send-pack [--exec=other] destination [heads]*"; +static const char send_pack_usage[] = +"git-send-pack [--exec=git-receive-pack] [host:]directory [heads]*"; static const char *exec = "git-receive-pack"; struct ref { @@ -204,9 +205,6 @@ static int send_pack(int in, int out, int nr_match, char **match) if (read_ref(name, new_sha1) < 0) continue; - if (nr_match && !path_match(name, nr_match, match)) - continue; - if (!memcmp(ref->old_sha1, new_sha1, 20)) { fprintf(stderr, "'%s' unchanged\n", name); continue;