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

Re: [PATCH] Allow cloning an empty repository

From
Jeff King <peff@peff.net>
Date
Jan 23, 2009, 22:37 UTC
Message-ID
<20090123223740.GA11527@coredump.intra.peff.net>
In-Reply-To
<bd6139dc0901231434n6d6af5a6ma8bb12a634d5b3ba@mail.gmail.com>
On Fri, Jan 23, 2009 at 11:34:04PM +0100, Sverre Rabbelier wrote:
Show 9 quoted lines
> On Fri, Jan 23, 2009 at 23:32, Jeff King <peff@peff.net> wrote:
> > Really? I have scripts that call clone (usually followed by building the
> > result). Are you proposing that all scripts should "git init && git
> > remote add && git fetch"?
> >
> > So I am strongly in favor of telling the difference between failure and
> > emptiness.
> 
> A switch then, '--allow-empty'?

No, I don't mind success on cloning an empty repository. But I thought the issue at hand was that for some instances, we would report that we successfully created an empty repository, when in fact what happened was that we failed to clone a non-empty repository. And that that was fixable, but it was a problem with our code interfaces (which should be fixable) and not some fundamental limitation.

Or am I misunderstanding the situation?
-Peff
Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 11 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.