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
@ -387,8 +387,7 @@ static int get_push_ref_states(const struct ref *remote_refs,
|
||||
local_refs = get_local_heads();
|
||||
push_map = copy_ref_list(remote_refs);
|
||||
|
||||
match_push_refs(local_refs, &push_map, remote->push.raw_nr,
|
||||
remote->push.raw, MATCH_REFS_NONE);
|
||||
match_push_refs(local_refs, &push_map, &remote->push, MATCH_REFS_NONE);
|
||||
|
||||
states->push.strdup_strings = 1;
|
||||
for (ref = push_map; ref; ref = ref->next) {
|
||||
|
Reference in New Issue
Block a user