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

Re: [PATCH] Allow cloning an empty repository

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 23, 2009, 20:05 UTC
Message-ID
<alpine.DEB.1.00.0901232100020.21467@intel-tinevez-2-302>
In-Reply-To
<20090123165549.GI21473@genesis.frugalware.org>
Hi,
On Fri, 23 Jan 2009, Miklos Vajna wrote:
Show 7 quoted lines
> On Fri, Jan 23, 2009 at 04:20:34AM +0100, Johannes Schindelin 
> <Johannes.Schindelin@gmx.de> wrote:
>
> > But then, scripts have no business cloning repositories (fetching, 
> > yes.  But cloning?)
> 
> I think portals like repo.or.cz may do it.

"git grep git.clone" in repo.git suggests that only clonecheck.sh uses it, which is not called anywhere.

But more generally, the same should apply to such scripts as to human users: HTTP _is_ 2nd class, and the fetch _could_ succeed later.

> Isn't setting errno (or similar variable) in the HTTP code an option? 
> Then we could see why the transport failed and make a difference between 
> "network error" and "no refs found".

I'd rather see the HTTP code path taken by transport.c _fail_ (i.e. die()) when there is some sort of connection error.

Ciao, Dscho

Previous: Miklos VajnaNext: Jeff King
Message 8 of 23 in “Allow cloning an empty repository”
  1. Allow cloning an empty repositorySverre Rabbelier, Jan 23, 2009
  2. Junio C HamanoJan 23, 2009
  3. Sverre RabbelierJan 23, 2009
  4. Johannes SchindelinJan 23, 2009
  5. Sverre RabbelierJan 23, 2009
  6. Johannes SchindelinJan 23, 2009
  7. Miklos VajnaJan 23, 2009
  8. Johannes SchindelinJan 23, 2009
  9. Jeff KingJan 23, 2009
  10. Sverre RabbelierJan 23, 2009
  11. Jeff KingJan 23, 2009
  12. Sverre RabbelierJan 23, 2009
  13. Johannes SchindelinJan 24, 2009
  14. Mike HommeyJan 23, 2009
  15. http fixes, was Re: [PATCH] Allow cloning an empty repositoryJohannes Schindelin, Jan 24, 2009
  16. Sverre RabbelierJan 24, 2009
  17. Miklos VajnaJan 23, 2009
  18. Johannes SchindelinJan 24, 2009
  19. Sverre RabbelierJan 24, 2009
  20. Miklos VajnaJan 25, 2009
  21. Sverre RabbelierJan 25, 2009
  22. Junio C HamanoJan 25, 2009
  23. Sverre RabbelierJan 25, 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.