Community
Participate
Working Groups
It would be nice if EGit supports the creation of new (bare) repositories similar to the following: git clone --bare . ../remote-repository.git
Code review at http://egit.eclipse.org/r/#change,1375
Created attachment 177327 [details] Layout issues with dialog The directory text is taking up too much space...
Another thing to note is that we now have three wizards on essentially adding / creating a repository... in the future, we may look to simplify this all in one wizard or dialog...
Fixed with 3a26f7e5b4b91de152d9e2777bef2883ccf9bc6f. Thanks Mathias!
Forgive my ignorance, but isn't the committed change an equivalent of "git init --bare ../remote-repository.git" rather than "git clone --bare . ../remote-repository.git" as requested in comment 0? I've been looking for a way to clone a repo and make it bare using JGit/EGit API. Unfortunately, it appears that org.eclipse.egit.core.op.CloneOperation can be used only to clone non-bare repos: * no param when doing local.create() in doInit * setting "bare" to false in local config few lines below * and finally checking out the work dir in doCheckout Lars is that really what you wanted? If yes I guess I will need to open a separate bug for it.
git init --bare ../remote-repository.git was my intention. I suggest to open a new bug.
(In reply to comment #5) > Forgive my ignorance, but isn't the committed change an equivalent of "git init > --bare ../remote-repository.git" rather than "git clone --bare . > ../remote-repository.git" as requested in comment 0? > > I've been looking for a way to clone a repo and make it bare using JGit/EGit > API. Unfortunately, it appears that org.eclipse.egit.core.op.CloneOperation can > be used only to clone non-bare repos: > * no param when doing local.create() in doInit > * setting "bare" to false in local config few lines below > * and finally checking out the work dir in doCheckout You should be using JGit API. http://wiki.eclipse.org/JGit/User_Guide#Repository Create a repository, you can set the bare attribute on the RepositoryBuilder class. There is a CheckoutCommand in the 'org.eclipse.jgit.api' package in the latest nightly build. If you wait a few days, there will be a 'CloneCommand' available too... just takes time.
(In reply to comment #6) > I suggest to open a new bug. Sure, it's bug 330898.