remote: convert match_push_refs to take a struct refspec
Convert 'match_push_refs()' to take a 'struct refspec' as a parameter instead of an array of 'const char *'. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
38490dd416
commit
5c7ec8462d
@ -275,7 +275,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
||||
flags |= MATCH_REFS_MIRROR;
|
||||
|
||||
/* match them up */
|
||||
if (match_push_refs(local_refs, &remote_refs, rs.raw_nr, rs.raw, flags))
|
||||
if (match_push_refs(local_refs, &remote_refs, &rs, flags))
|
||||
return -1;
|
||||
|
||||
if (!is_empty_cas(&cas))
|
||||
|
||||
Reference in New Issue
Block a user