Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330898 - Clone bare git repository
Summary: Clone bare git repository
Status: CLOSED DUPLICATE of bug 334763
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.10.0-M3   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334092
  Show dependency tree
 
Reported: 2010-11-23 05:04 EST by Tomasz Zarna CLA
Modified: 2011-02-08 09:12 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2010-11-23 05:04:37 EST
It would be nice if JGit provided API for cloning repositories with "--bare" switch. An equivalent of: 

git clone --bare git://github.com/zaza/test.git test-bare.git
Comment 1 Tomasz Zarna CLA 2010-11-23 05:11:40 EST
On bug 315015, comment 7 zx mentioned that there is CheckoutCommand in the 'org.eclipse.jgit.api' package and that CloneCommand is coming. I've just pulled changes from git://egit.eclipse.org/jgit.git (master) but I cannot see the first command there. I wonder if I'm on the right branch. Don't want to miss the moment when the CloneCommand (with the bare switch) arrives ;)
Comment 2 Chris Aniszczyk CLA 2010-11-23 09:48:16 EST
I'm working on this. It depends on CheckoutCommand...

http://egit.eclipse.org/r/#change,1832

I'll be uploading a CloneCommand patch soon.
Comment 3 Tomasz Zarna CLA 2011-01-26 06:17:13 EST
Any news here Chris? It looks that you have all the bits in place (FetchCommand and CheckoutCommand). Can I be of any assistance?
Comment 4 Tomasz Zarna CLA 2011-02-04 03:58:54 EST
Looks like fixed with 4112884ede26000890a5a65a4703b762d93b4336, am I right?
Comment 5 Tomasz Zarna CLA 2011-02-08 09:01:27 EST
The command works great, the only thing I'm missing is that it doesn't update the repository configuration. To pull changes I had to manually set "merge" and "remote" fields in the configuration.
Comment 6 Chris Aniszczyk CLA 2011-02-08 09:03:29 EST
(In reply to comment #5)
> The command works great, the only thing I'm missing is that it doesn't update
> the repository configuration. To pull changes I had to manually set "merge" and
> "remote" fields in the configuration.

Can you open a bug for this?

*** This bug has been marked as a duplicate of bug 330860 ***
Comment 7 Chris Aniszczyk CLA 2011-02-08 09:04:53 EST

*** This bug has been marked as a duplicate of bug 334763 ***
Comment 8 Tomasz Zarna CLA 2011-02-08 09:12:03 EST
(In reply to comment #6)
> Can you open a bug for this?

Done, it's bug 336621.