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

Re: Java GIT/Eclipse GIT version 0.1.1

From
Shawn Pearce <spearce@spearce.org>
Date
Jul 29, 2006, 04:08 UTC
Message-ID
<20060729040819.GD28128@spearce.org>
In-Reply-To
<1154145355.26378.35.camel@dv>
Pavel Roskin <proski@gnu.org> wrote:
Show 8 quoted lines
> On Fri, 2006-07-28 at 23:32 -0400, Shawn Pearce wrote:
> 
> > Hmm.  My website is known to return 200 OK status codes on missing
> > files with HTML pages rather than proper 404 Not Found.  I guess
> > I need to get that fixed.
> 
> Maybe git-http-fetch could treat MIME type text/html like error 404?
> It's not like any valid file git requests can be in HTML format.

This has been discussed to death on the list, mostly due to my pg repository causing the same error (its on the same server).

The solution turned out to be rather good in my opinion: if an object is corrupt we log it, and skip to pack downloading. At the end the bad object is logged and the user is encouraged to run git-fsck-objects to verify there's no corrupt objects or objects which are missing things they point at (e.g. ancestor commits or trees).

Of course the real solution here is for me to fix my server.  :-)
Show 6 quoted lines
> > I just compiled and installed `next` (1.4.2.rc1.g802da) and it can
> > clone this repository just fine over HTTP, despite my broken server.
> > So I'm not really sure what is going on.
> 
> Sorry, I was unclear.  I can clone the repository, I was just concerned
> that something was missing from it.

git-http-fetch recommends running git-fsck-objects to be sure, but yea, usually its complete even though you get the error.

-- 
Shawn.
Previous: Pavel RoskinNext: Jakub Narebski
Message 9 of 12 in “Java GIT/Eclipse GIT version 0.1.1”
  1. Shawn PearceJul 28, 2006
  2. Peter BaumannJul 28, 2006
  3. Pavel RoskinJul 28, 2006
  4. Peter BaumannJul 28, 2006
  5. Pavel RoskinJul 29, 2006
  6. Peter BaumannJul 29, 2006
  7. Shawn PearceJul 29, 2006
  8. Pavel RoskinJul 29, 2006
  9. Shawn PearceJul 29, 2006
  10. Jakub NarebskiJul 29, 2006
  11. Daniel BarkalowJul 30, 2006
  12. Shawn PearceJul 31, 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.