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:
Brandon Williams
2018-05-16 15:58:21 -07:00
committed by Junio C Hamano
parent 38490dd416
commit 5c7ec8462d
6 changed files with 13 additions and 22 deletions

View File

@ -1823,8 +1823,7 @@ int cmd_main(int argc, const char **argv)
}
/* match them up */
if (match_push_refs(local_refs, &remote_refs,
rs.raw_nr, rs.raw, push_all)) {
if (match_push_refs(local_refs, &remote_refs, &rs, push_all)) {
rc = -1;
goto cleanup;
}