Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
http-push: do not access git_default_email directly
author
Jeff King
<peff@peff.net>
Mon, 21 May 2012 23:09:47 +0000
(19:09 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 22 May 2012 16:07:52 +0000
(09:07 -0700)
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>
http-push.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
bcb2b00
)
diff --git
a/http-push.c
b/http-push.c
index 1df7ab5670d0ba2823da14083934925b0f05c926..a832ca77a31245e8ef9c71adcc0d7110fcda1e5c 100644
(file)
--- 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);