Re: [PATCH] clone: support atomic operation with --separate-git-dir
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 6, 2013, 09:16 UTC
- Message-ID
- <20130106091642.GA10956@elie.Belkin>
- In-Reply-To
- <CACsJy8Dbe1+e4-XjB+S=kvXyi_Hdt4CQ6K1Z1V-4sqaYekKPWw@mail.gmail.com>
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 <repo>". In the meantime,
printf '%s\n' 'gitdir: /path/to/repo' >repo.git
works fine.