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

[BUG] remote curl fetches HTML documents

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Mar 30, 2010, 20:06 UTC
Message-ID
<f3271551003301306i7e7659acu4724fc9e5a575468@mail.gmail.com>
Hi,

I found a bug in the curl family of remote helpers. I've posted a bugfix by assuming as little about the URL that libcurl accepts as possible.

$ git remote-http foo list 0000000000000000000000000000000000000000 html> 0000000000000000000000000000000000000000 <head> 0000000000000000000000000000000000000000 <title>OpenDNS</title> 0000000000000000000000000000000000000000 </head> 0000000000000000000000000000000000000000 </head> 0000000000000000000000000000000000000000 <body id="mainbody" onLoad="testforbanner();" style="margin: 0px;"> <SNIP>

$ git remote-http foo fetch 0000000000000000000000000000000000000000 html>

error: inflate: data stream error (incorrect header check) error: File 0000000000000000000000000000000000000000 (foo/objects/00/00000000000000000000000000000000000000) corrupt error: Unable to find 0000000000000000000000000000000000000000 under foo Cannot obtain needed object 0000000000000000000000000000000000000000 error: Fetch failed.

-- Ram
Message 1 of 1 in “[BUG] remote curl fetches HTML documents”
  1. Ramkumar RamachandraMar 30, 2010

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.