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

[PATCH v5.1 1/3] http-backend: Remove pointless objects/info/* service entry

From
Shawn O. Pearce <spearce@spearce.org>
Date
Nov 5, 2009, 01:16 UTC
Message-ID
<1257383798-29826-1-git-send-email-spearce@spearce.org>

In earlier versions of this patch series this rule was used to match and serve objects/info/alternates and http-alternates. Later versions of the patch series explicitly called out match rules for those files, making this wildcard rule unnecessary.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 This probably should be squashed into the commit that introduces
 this CGI script ("Git-aware CGI to provide dumb HTTP transport").
 http-backend.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/http-backend.c b/http-backend.c
index 8e5c0a2..7900cda 100644
--- a/http-backend.c
+++ b/http-backend.c
@@ -558,7 +558,6 @@ static struct service_cmd {
 	{"GET", "/objects/info/alternates$", get_text_file},
 	{"GET", "/objects/info/http-alternates$", get_text_file},
 	{"GET", "/objects/info/packs$", get_info_packs},
-	{"GET", "/objects/info/[^/]*$", get_text_file},
 	{"GET", "/objects/[0-9a-f]{2}/[0-9a-f]{38}$", get_loose_object},
 	{"GET", "/objects/pack/pack-[0-9a-f]{40}\\.pack$", get_pack_file},
 	{"GET", "/objects/pack/pack-[0-9a-f]{40}\\.idx$", get_idx_file},
-- 
1.6.5.2.295.g0d105
Next: Shawn O. Pearce
Message 1 of 3 in “http-backend: Remove pointless objects/info/* service entry”
  1. 1/3 http-backend: Remove pointless objects/info/* service entryShawn O. Pearce, Nov 5, 2009
  2. 2/3 http-backend: Use http.getanyfile to disable dumb HTTP servingShawn O. Pearce, Nov 5, 2009
  3. 3/3 http-backend: Test configuration optionsShawn O. Pearce, Nov 5, 2009

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.