push: drop unused repo argument to do_push()
We stopped using the "repo" argument in 8e4c8af058
(push: disallow --all
and refspecs when remote.<name>.mirror is set, 2019-09-02), which moved
the pushremote handling to its caller.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
8d2aa8dfac
commit
5b9427e0ac
@ -379,7 +379,7 @@ static int push_with_options(struct transport *transport, struct refspec *rs,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int do_push(const char *repo, int flags,
|
static int do_push(int flags,
|
||||||
const struct string_list *push_options,
|
const struct string_list *push_options,
|
||||||
struct remote *remote)
|
struct remote *remote)
|
||||||
{
|
{
|
||||||
@ -629,7 +629,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
|
|||||||
if (strchr(item->string, '\n'))
|
if (strchr(item->string, '\n'))
|
||||||
die(_("push options must not have new line characters"));
|
die(_("push options must not have new line characters"));
|
||||||
|
|
||||||
rc = do_push(repo, flags, push_options, remote);
|
rc = do_push(flags, push_options, remote);
|
||||||
string_list_clear(&push_options_cmdline, 0);
|
string_list_clear(&push_options_cmdline, 0);
|
||||||
string_list_clear(&push_options_config, 0);
|
string_list_clear(&push_options_config, 0);
|
||||||
if (rc == -1)
|
if (rc == -1)
|
||||||
|
Reference in New Issue
Block a user