Re: [JGIT PATCH] Added support for creating bare repositories
- From
- Constantine Plotnikov <constantine.plotnikov@gmail.com>
- Date
- Apr 27, 2009, 12:46 UTC
- Message-ID
- <85647ef50904270546w41692a50j84cc898a264998ba@mail.gmail.com>
- In-Reply-To
- <200904270029.56939.robin.rosenberg.lists@dewire.com>
On Mon, Apr 27, 2009 at 2:29 AM, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
Show 11 quoted lines
> fredag 24 april 2009 17:36:57 skrev Constantine Plotnikov <constantine.plotnikov@gmail.com>: >> Now it is possible to create bare repositories. >> The difference from normal repository creation is >> that directory where repository is created might >> exists and that core.bare property is set to true. > > I know C Git doesn't check if a directory is a non-bare repo, but I think > that's wrong, so if I try to create a bare repo in a non-bare repo that > should be an error. For now I'll accept it anyway since the C version allows > it and it is useful. >
I'm not sure that this should be an error. We have a bare git repository with a test data inside the non-bare repository. And such feature might be nice to have to other git related tools as well. %)
Constantine