Skip to content

Commit 5b9427e

Browse files
peffgitster
authored andcommitted
push: drop unused repo argument to do_push()
We stopped using the "repo" argument in 8e4c8af (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d2aa8d commit 5b9427e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/push.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int push_with_options(struct transport *transport, struct refspec *rs,
379379
return 1;
380380
}
381381

382-
static int do_push(const char *repo, int flags,
382+
static int do_push(int flags,
383383
const struct string_list *push_options,
384384
struct remote *remote)
385385
{
@@ -629,7 +629,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
629629
if (strchr(item->string, '\n'))
630630
die(_("push options must not have new line characters"));
631631

632-
rc = do_push(repo, flags, push_options, remote);
632+
rc = do_push(flags, push_options, remote);
633633
string_list_clear(&push_options_cmdline, 0);
634634
string_list_clear(&push_options_config, 0);
635635
if (rc == -1)

0 commit comments

Comments
 (0)