git_push_config: drop cargo-culted wt_status pointer
The push config callback does not expect any incoming data via the void pointer. And if it did, it would certainly not be a "struct wt_status". This probably got picked up accidentally in b945901 (push: heed user.signingkey for signed pushes, 2014-10-22), which copied the template for the config callback from builtin/commit.c. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Feb 16, 2015 at 00:46 UTC
06038cd7b7646333f15de663b7564cf390dcefbe
1 file changed
+1
-2
builtin/push.c
+1
-2
@@ -473,13 +473,12 @@ static int option_parse_recurse_submodules(const struct option *opt,
473
474
static int git_push_config(const char *k, const char *v, void *cb)
475
{
476
- struct wt_status *s = cb;
476
int status;
477
478
status = git_gpg_config(k, v, NULL);
479
if (status)
480
return status;
482
- return git_default_config(k, v, s);
481
+ return git_default_config(k, v, NULL);
482
}
483
484
int cmd_push(int argc, const char **argv, const char *prefix)