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