summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-21 23:09:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-22 16:07:52 (GMT)
commit5cb2194aba3c6828cec3e4ec75d78f49165e2eab (patch)
treef0bf917c447d98aded56c2d77e2e06121f669df7 /http-push.c
parentbcb2b0044b3baedf7857613ec069f300c364680c (diff)
downloadgit-5cb2194aba3c6828cec3e4ec75d78f49165e2eab.zip
git-5cb2194aba3c6828cec3e4ec75d78f49165e2eab.tar.gz
git-5cb2194aba3c6828cec3e4ec75d78f49165e2eab.tar.bz2
http-push: do not access git_default_email directly
By calling the ident_default_email accessor, we can be sure that the default value is actually filled-in. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index 1df7ab5..a832ca7 100644
--- a/http-push.c
+++ b/http-push.c
@@ -904,7 +904,7 @@ static struct remote_lock *lock_remote(const char *path, long timeout)
ep = strchr(ep + 1, '/');
}
- escaped = xml_entities(git_default_email);
+ escaped = xml_entities(ident_default_email());
strbuf_addf(&out_buffer.buf, LOCK_REQUEST, escaped);
free(escaped);