{"thread":{"id":"3100","subject":"[PATCH] git-fetch-pack: really do not ask for funny refs","startedAt":"2006-01-18T23:24:04Z","lastAt":"2006-01-19T00:33:49Z","messageCount":2,"participants":["Johannes Schindelin","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"14856","messageId":"Pine.LNX.4.63.0601190023390.15298@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"3100","inReplyTo":null,"subject":"[PATCH] git-fetch-pack: really do not ask for funny refs","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-01-18T23:24:04Z","receivedAt":"2006-01-18T23:24:04Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nIf git-fetch-pack was called with out any refspec, it would ask the server\nfor funny refs. That cannot work, since the funny refs are not marked\nas OUR_REF by upload-pack, which just exits with an error.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\n---\n\n fetch-pack.c |    3 ---\n 1 files changed, 0 insertions(+), 3 deletions(-)\n\n718ad2d76a6c7d350d63c0660aeb69518b765310\ndiff --git a/fetch-pack.c b/fetch-pack.c\nindex d34f322..27f5d2a 100644\n--- a/fetch-pack.c\n+++ b/fetch-pack.c\n@@ -262,9 +262,6 @@ static void filter_refs(struct ref **ref\n {\n \tstruct ref *prev, *current, *next;\n \n-\tif (!nr_match)\n-\t\treturn;\n-\n \tfor (prev = NULL, current = *refs; current; current = next) {\n \t\tnext = current->next;\n \t\tif ((!memcmp(current->name, \"refs/\", 5) &&\n-- \n1.1.3.g0bf8-dirty\n"},{"id":"14859","messageId":"7vy81drr82.fsf@assigned-by-dhcp.cox.net","threadId":"3100","inReplyTo":"Pine.LNX.4.63.0601190023390.15298@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: [PATCH] git-fetch-pack: really do not ask for funny refs","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-01-19T00:33:49Z","receivedAt":"2006-01-19T00:33:49Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Good catch.  Thanks.\n"}]}