aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-06 10:16:52 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-06 10:19:38 -0700
commitdb27ee63929fa4a161c321daf52df5635fd4828c (patch)
tree77f1eb4d7b42084233766101b91ba5c91c430b9e
parente4ad5f0979bf4791a0c4a755a3dd184c8f178550 (diff)
downloadgit-db27ee63929fa4a161c321daf52df5635fd4828c.tar.gz
git-db27ee63929fa4a161c321daf52df5635fd4828c.tar.xz
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. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--connect.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/connect.c b/connect.c
index 3953a1af3..c872bfd45 100644
--- a/connect.c
+++ b/connect.c
@@ -190,13 +190,6 @@ static int match_explicit_refs(struct ref *src, struct ref *dst,
}
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.",