From: Jonathan Nieder Date: Sun, 06 Jan 2013 09:16:42 GMT Subject: Re: [PATCH] clone: support atomic operation with --separate-git-dir Message-ID: <20130106091642.GA10956@elie.Belkin> In-Reply-To: Duy Nguyen wrote: > And > because junk_work_tree is not set up for --bare, I guess we still need > to fix "--bare --separate-git-dir" case, or forbid it because i'm not > sure if that case makes sense at all. Forbidding it makes sense to me. If some day we want a git command to create a .git file, I don't think it should be spelled as "git clone --bare --separate-git-dir ". In the meantime, printf '%s\n' 'gitdir: /path/to/repo' >repo.git works fine.