summaryrefslogtreecommitdiff
path: root/builtin/send-pack.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 15:58:21 -0700
committerJunio C Hamano <gitster@pobox.com>2018-05-18 06:19:44 +0900
commit5c7ec8462d8706f9731f0d54ea3fdfe810d60a88 (patch)
tree806f0fd0f8850ed22298cd882a056c99c101bdd9 /builtin/send-pack.c
parent38490dd416af41ce65eab0fc91de14009c73d606 (diff)
downloadgit-5c7ec8462d8706f9731f0d54ea3fdfe810d60a88.tar.gz
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/send-pack.c')
-rw-r--r--builtin/send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index 7c34bf467e..4923b1058c 100644
--- a/builtin/send-pack.c
+++ b/builtin/send-pack.c
@@ -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))