[PATCH] Update git-tag-script to create the .git/refs/tags if it does not already...
[git.git] / send-pack.c
index 4c6adab..02d1d52 100644 (file)
@@ -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;