git/list[1] front-page[2] threads[3] people[4] search[5] about
 

http-push: email address problem with LOCK_REQUEST?

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Aug 4, 2006, 21:01 UTC
Message-ID
<000401c6b809$2a4f62e0$c47eedc1@ramsay1.demon.co.uk>
Hi all,

Whilst fixing the git-format-patch "Signed-off-by identity bug", I decided to have a look at the other calls to setup_ident(), to check for similar problems. I noticed a couple of things that didn't look quite right (see also next email).

In particular, http-push accesses git_default_email directly, using it as part of a (DAV?) LOCK_REQUEST. However, since http-push does not call git_config(), only the generic <user@localhost.localdomain> determined by setup_ident() will be used.

Now this may not be a problem. I don't really know what the email address is used for in the lock request; it could have no effect on the transaction at all, apart from perhaps some message text in the web-server logs.

Also, there may be a reason for not reading the config file. I can't think of one, but hey ...

Unfortunately, since my config has NO_CURL, I can't even compile http-push.c, let alone test the change given below.

comments anyone?
Ramsay
diff --git a/http-push.c b/http-push.c
index e281f70..4de62e4 100644
--- a/http-push.c
+++ b/http-push.c
@@ -2340,6 +2340,7 @@ int main(int argc, char **argv)
 
 	setup_git_directory();
 	setup_ident();
+	git_config(git_default_config);
 
 	remote = xcalloc(sizeof(*remote), 1);
 
Message 1 of 1 in “http-push: email address problem with LOCK_REQUEST?”
  1. Ramsay JonesAug 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.