diff options
author | Brandon Williams <bmwill@google.com> | 2018-05-16 15:58:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-18 06:19:44 +0900 |
commit | 306f22dbc8f43feeed735905276c48a96c63b9e5 (patch) | |
tree | cf0de85a759a09f07417f2e2e3d29553a22faceb /builtin/push.c | |
parent | push: convert to use struct refspec (diff) | |
download | tgif-306f22dbc8f43feeed735905276c48a96c63b9e5.tar.xz |
transport: convert transport_push to take a struct refspec
Convert 'transport_push()' to take a 'struct refspec' as a
parameter instead of an array of strings which represent
refspecs.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/push.c')
-rw-r--r-- | builtin/push.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/push.c b/builtin/push.c index ef42979d1e..9cd8e8cd56 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -355,8 +355,7 @@ static int push_with_options(struct transport *transport, struct refspec *rs, if (verbosity > 0) fprintf(stderr, _("Pushing to %s\n"), transport->url); - err = transport_push(transport, rs->raw_nr, rs->raw, flags, - &reject_reasons); + err = transport_push(transport, rs, flags, &reject_reasons); if (err != 0) { fprintf(stderr, "%s", push_get_color(PUSH_COLOR_ERROR)); error(_("failed to push some refs to '%s'"), transport->url); |