summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:58:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:44 (GMT)
commit5c7ec8462d8706f9731f0d54ea3fdfe810d60a88 (patch)
tree806f0fd0f8850ed22298cd882a056c99c101bdd9 /builtin/remote.c
parent38490dd416af41ce65eab0fc91de14009c73d606 (diff)
downloadgit-5c7ec8462d8706f9731f0d54ea3fdfe810d60a88.zip
git-5c7ec8462d8706f9731f0d54ea3fdfe810d60a88.tar.gz
git-5c7ec8462d8706f9731f0d54ea3fdfe810d60a88.tar.bz2
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>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r--builtin/remote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index b8e6658..b84175c 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -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) {