summaryrefslogtreecommitdiff
path: root/builtin/push.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-02-16 05:46:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-02-16 06:55:11 (GMT)
commit06038cd7b7646333f15de663b7564cf390dcefbe (patch)
tree4345c42d14eddb09aad19330ca792d1d637ae2a2 /builtin/push.c
parent18d0fec24027ac226dc2c4df2b955eef2a16462a (diff)
downloadgit-06038cd7b7646333f15de663b7564cf390dcefbe.zip
git-06038cd7b7646333f15de663b7564cf390dcefbe.tar.gz
git-06038cd7b7646333f15de663b7564cf390dcefbe.tar.bz2
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>
Diffstat (limited to 'builtin/push.c')
-rw-r--r--builtin/push.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/push.c b/builtin/push.c
index fc771a9..aa9334c 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -473,13 +473,12 @@ static int option_parse_recurse_submodules(const struct option *opt,
static int git_push_config(const char *k, const char *v, void *cb)
{
- struct wt_status *s = cb;
int status;
status = git_gpg_config(k, v, NULL);
if (status)
return status;
- return git_default_config(k, v, s);
+ return git_default_config(k, v, NULL);
}
int cmd_push(int argc, const char **argv, const char *prefix)