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

Re: Cloning from sites with 404 overridden

From
Petr Baudis <pasky@suse.cz>
Date
Mar 20, 2006, 19:43 UTC
Message-ID
<20060320194316.GO18185@pasky.or.cz>
In-Reply-To
<441EF46E.5050907@etek.chalmers.se>

Dear diary, on Mon, Mar 20, 2006 at 07:29:02PM CET, I got a letter where Lukas Sandström <lukass@etek.chalmers.se> said that...

Show 14 quoted lines
> Junio C Hamano wrote:
> > "Marco Costalba" <mcostalba@gmail.com> writes:
> >>http://digilander.libero.it /mcostalba/scm/qgit.git/objects/8d/ea03519e75f47d
> > 
> > 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.
> 
> Actually, it sends a 302 redirect. 
> 
> Perhaps a repository config option to treat a 302 as a 404?

I think that would be too ugly _and_ specific a workaround for the particular site. It's reasonable to keep it generalized for all the broken repositories when already doing it.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.
Previous: Lukas SandströmNext: Nick Hengeveld
Message 11 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.