Skip to content
Browse files

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>
  • Loading branch information...
1 parent bcb2b00 commit 5cb2194aba3c6828cec3e4ec75d78f49165e2eab @peff peff committed with gitster May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 http-push.c
View
2 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);

0 comments on commit 5cb2194

Please sign in to comment.
Something went wrong with that request. Please try again.