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>

Jeff King committed May 21, 2012 at 19:09 UTC 5cb2194aba3c6828cec3e4ec75d78f49165e2eab
1 file changed +1 -1
http-push.c
+1 -1
@@ -904,7 +904,7 @@ static struct remote_lock *lock_remote(const char *path, long timeout)
904 ep = strchr(ep + 1, '/');
905 }
906
907 - escaped = xml_entities(git_default_email);
907 + escaped = xml_entities(ident_default_email());
908 strbuf_addf(&out_buffer.buf, LOCK_REQUEST, escaped);
909 free(escaped);
910