summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-13 18:57:40 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-15 11:23:40 -0700
commit1a7141ff28e217312da4b289127875905c6ec479 (patch)
treea8e87b3b44fb81f492d6e073008dbb4a85a3f2e6 /send-pack.c
parentd8a1deecc6ef37728b951eaba051deb7e0a38af8 (diff)
downloadgit-1a7141ff28e217312da4b289127875905c6ec479.tar.gz
Ignore funny refname sent from remote
This allows the remote side (most notably, upload-pack) to show additional information without affecting the downloader. Peek-remote does not ignore them -- this is to make it useful for Pasky's automatic tag following. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index 55d8ff7e10..9f9a6e70b8 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -181,7 +181,7 @@ static int send_pack(int in, int out, int nr_refspec, char **refspec)
int new_refs;
/* No funny business with the matcher */
- remote_tail = get_remote_heads(in, &remote_refs, 0, NULL);
+ remote_tail = get_remote_heads(in, &remote_refs, 0, NULL, 1);
get_local_heads();
/* match them up */