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

Re: Cloning from sites with 404 overridden

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Mar 19, 2006, 21:40 UTC
Message-ID
<e5bfff550603191340u466d3551t8a95c3808eb977c1@mail.gmail.com>
In-Reply-To
<7vk6aqql9e.fsf@assigned-by-dhcp.cox.net>
On 3/19/06, Junio C Hamano <junkio@cox.net> wrote:
Show 15 quoted lines
> "Marco Costalba" <mcostalba@gmail.com> writes:
>
> > http://digilander.libero.it /mcostalba/scm/qgit.git/objects/8d/ea03519e75f47d
> >
> > Git does not understand object is missing and thinks what site sends
> > _is_ the requested
> > object and then founds that is (of course) corrupted.
>
> To be fair, the site is _not_ missing anything from HTTP
> protocol perspective, because when git asks 8d/ea0351... file,
> the server responds with a regular "HTTP/1.0 200 OK" response.
> So it is _your_ repository that is corrupt -- instead of
> correctly _lacking_ the file you should have removed with
> prune-packed, it has a garbage file.
>

Currently my git repo layout is as follow $ pwd <local master copy>/qgit.git/.git $ ls branches/ description HEAD index objects/ refs/ config FETCH_HEAD hooks/ info/ ORIG_HEAD remotes/ $ ls objects 2c/ 32/ 53/ 5c/ 6a/ info/ pack/

The host copy should be the exact mirror of the local copy (I use sitecopy to sync host). I have also verified this directly accessing the host with ftp.

So the 8d/ea0351... file is really not existent. BTW I have run git prune and git-prune-packed also.

Finally accessing the missing object with a browser

http://digilander.libero.it/mcostalba/ scm/qgit.git/objects/8d/ea03519e75f47da91108330dde3043defddd60

gives a pre-canned (in italian) 'Sorry page not found' stuff.

So I really think the site "HTTP/1.0 200 OK" response it's a fake. Perhaps security related to avoid sniffing (just a guess because I have absolutely zero competence in security related things).

Marco
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 17 in “Cloning from sites with 404 overridden”
  1. Marco CostalbaMar 19, 2006
  2. Paolo CiarrocchiMar 19, 2006
  3. Marco CostalbaMar 19, 2006
  4. Junio C HamanoMar 19, 2006
  5. Marco CostalbaMar 19, 2006
  6. Junio C HamanoMar 19, 2006
  7. Marco CostalbaMar 20, 2006
  8. Junio C HamanoMar 20, 2006
  9. Marco CostalbaMar 20, 2006
  10. Lukas SandströmMar 20, 2006
  11. Petr BaudisMar 20, 2006
  12. Nick HengeveldMar 20, 2006
  13. Junio C HamanoMar 19, 2006
  14. Petr BaudisMar 19, 2006
  15. Petr BaudisMar 19, 2006
  16. Marco CostalbaMar 19, 2006
  17. Randal L. SchwartzMar 20, 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.