Merge branch 'jc/nobody-sets-src-peer-ref'
authorJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2013 16:05:35 +0000 (09:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2013 16:05:35 +0000 (09:05 -0700)
Dead code removal.

* jc/nobody-sets-src-peer-ref:
match_push_refs(): nobody sets src->peer_ref anymore

remote.c
index 57f36e14da7a8a33ae8c02a4bf46492936c79fdd..ca1edd901e4e64cb497b790f675537283c4ee1c0 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1322,9 +1322,6 @@ int match_push_refs(struct ref *src, struct ref **dst,
                const struct refspec *pat = NULL;
                char *dst_name;
 
-               if (ref->peer_ref)
-                       continue;
-
                dst_name = get_ref_match(rs, nr_refspec, ref, send_mirror, FROM_SRC, &pat);
                if (!dst_name)
                        continue;