Skip to content

Commit

Permalink
send-pack: allow the same source to be pushed more than once.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Aug 6, 2005
1 parent e4ad5f0 commit db27ee6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit db27ee6

Please sign in to comment.