{"thread":{"id":"1438","subject":"[PATCH] send-pack: allow the same source to be pushed more than once.","startedAt":"2005-08-06T17:25:17Z","lastAt":"2005-08-06T17:25:17Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"6883","messageId":"7v8xzf9dvm.fsf@assigned-by-dhcp.cox.net","threadId":"1438","inReplyTo":null,"subject":"[PATCH] send-pack: allow the same source to be pushed more than once.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-08-06T17:25:17Z","receivedAt":"2005-08-06T17:25:17Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"The revised code accidentally inherited the restriction that a\nreference can be pushed only once, only because the original did\nnot allow renaming.  This is no longer necessary so lift it.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n connect.c |    7 -------\n 1 files changed, 0 insertions(+), 7 deletions(-)\n\ndb27ee63929fa4a161c321daf52df5635fd4828c\ndiff --git a/connect.c b/connect.c\n--- a/connect.c\n+++ b/connect.c\n@@ -190,13 +190,6 @@ static int match_explicit_refs(struct re\n \t\t}\n \t\tif (errs)\n \t\t\tcontinue;\n-\t\tif (matched_src->peer_ref) {\n-\t\t\terrs = 1;\n-\t\t\terror(\"src ref %s is sent to more than one dst.\",\n-\t\t\t      matched_src->name);\n-\t\t}\n-\t\telse\n-\t\t\tmatched_src->peer_ref = matched_dst;\n \t\tif (matched_dst->peer_ref) {\n \t\t\terrs = 1;\n \t\t\terror(\"dst ref %s receives from more than one src.\",\n"}]}