From: Jeff King Date: Mon, 21 May 2012 23:09:47 +0000 (-0400) Subject: http-push: do not access git_default_email directly X-Git-Tag: v1.7.11-rc1~15^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5cb2194aba3c6828cec3e4ec75d78f49165e2eab;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/http-push.c b/http-push.c index 1df7ab567..a832ca77a 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);