Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 13, 2007, 10:08 UTC
- Message-ID
- <fhbt3o$ebf$2@ger.gmane.org>
- In-Reply-To
- <vpqzlxiiii6.fsf@bauges.imag.fr>
Matthieu Moy wrote:
Show 11 quoted lines
> I repeat the use-case I mentionned above : > > ,---- > | a typical use-case is when I want to create a new project. I'd > | like to initialize an empty bare repo on my backed up disk, and then > | clone it to my local-fast-unreliable disk to get a working copy and do > | the first commit there. > `---- > > I find this quite natural, and up to now, no one gave me either a > rationale not to do that,
The rationale is that current git just simply cannot do this. You are welcome to add support for this corner case in git-clone, or add git protocol extension for symref transfer.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git