projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Update git-tag-script to create the .git/refs/tags if it does not already...
[git.git]
/
send-pack.c
diff --git
a/send-pack.c
b/send-pack.c
index
4c6adab
..
02d1d52
100644
(file)
--- a/
send-pack.c
+++ b/
send-pack.c
@@
-2,7
+2,8
@@
#include "refs.h"
#include "pkt-line.h"
#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 {
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 (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;
if (!memcmp(ref->old_sha1, new_sha1, 20)) {
fprintf(stderr, "'%s' unchanged\n", name);
continue;