Skip to contentSkip to conversation

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

PATCH New Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

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.

---

 connect.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

db27ee63929fa4a161c321daf52df5635fd4828c

connect.c +0 -7
@@ -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.",