diff options
author | Brandon Williams <bmwill@google.com> | 2018-05-17 00:58:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-17 23:19:44 +0200 |
commit | 5c7ec8462d8706f9731f0d54ea3fdfe810d60a88 (patch) | |
tree | 806f0fd0f8850ed22298cd882a056c99c101bdd9 /transport.c | |
parent | http-push: store refspecs in a struct refspec (diff) | |
download | git-5c7ec8462d8706f9731f0d54ea3fdfe810d60a88.tar.xz git-5c7ec8462d8706f9731f0d54ea3fdfe810d60a88.zip |
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 '')
-rw-r--r-- | transport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/transport.c b/transport.c index fe96c0b807..24a97d9e8d 100644 --- a/transport.c +++ b/transport.c @@ -1127,10 +1127,8 @@ int transport_push(struct transport *transport, if (flags & TRANSPORT_PUSH_FOLLOW_TAGS) match_flags |= MATCH_REFS_FOLLOW_TAGS; - if (match_push_refs(local_refs, &remote_refs, - rs->raw_nr, rs->raw, match_flags)) { + if (match_push_refs(local_refs, &remote_refs, rs, match_flags)) return -1; - } if (transport->smart_options && transport->smart_options->cas && |