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

Re: [BUG] (minor) Cloning an empty repository

From
Petr Baudis <pasky@suse.cz>
Date
Aug 31, 2007, 10:10 UTC
Message-ID
<20070831101052.GO1219@pasky.or.cz>
In-Reply-To
<vpqk5rc10mx.fsf@bauges.imag.fr>
  Hi,
On Fri, Aug 31, 2007 at 12:03:50PM CEST, Matthieu Moy wrote:
> That's a detail, but it would be better if either git could actually
> do the clone, or give me a clean error message like "Can not clone
> empty repository".

FWIW, I would like git to clone empty repositories too. With the current smart remotes handling, it will pick up the first branches as they appear in the other repository automagically. And with e.g. repo.or.cz, if you are starting a project from scratch this would be useful. Sure, you can instead git init && git remote add origin git+ssh://.../, but this fact seems to be confusing not-so-git-well-versed people.

Now, I guess you'd like a patch... ;-)
-- 
				Petr "Pasky" Baudis
Early to rise and early to bed makes a male healthy and wealthy and dead.
                -- James Thurber
Previous: Matthieu Moy
Message 2 of 2 in “[BUG] (minor) Cloning an empty repository”
  1. Matthieu MoyAug 31, 2007
  2. Petr BaudisAug 31, 2007

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.