git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] send-pack: allow the same source to be pushed more than once.

From
Junio C Hamano <junkio@cox.net>
Date
Aug 6, 2005, 17:25 UTC
Message-ID
<7v8xzf9dvm.fsf@assigned-by-dhcp.cox.net>

The revised code accidentally inherited the restriction that a reference can be pushed only once, only because the original did not allow renaming. This is no longer necessary so lift it.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 connect.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
db27ee63929fa4a161c321daf52df5635fd4828c
diff --git a/connect.c b/connect.c
--- a/connect.c
+++ b/connect.c
@@ -190,13 +190,6 @@ static int match_explicit_refs(struct re
 		}
 		if (errs)
 			continue;
-		if (matched_src->peer_ref) {
-			errs = 1;
-			error("src ref %s is sent to more than one dst.",
-			      matched_src->name);
-		}
-		else
-			matched_src->peer_ref = matched_dst;
 		if (matched_dst->peer_ref) {
 			errs = 1;
 			error("dst ref %s receives from more than one src.",
Message 1 of 1 in “send-pack: allow the same source to be pushed more than once.”
  1. send-pack: allow the same source to be pushed more than once.Junio C Hamano, Aug 6, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.