Thread (7 messages) flat view 7 messages, 2 authors, 2016-06-15

Re: [EGIT] [PATCH 1/2] Make sure to set core.bare to false when cloning

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:46:16

ferry.huberts@pelagic.nl wrote:
From: Ferry Huberts <redacted>

This is to make sure that the git plugin sets up a clone
in the same fashion as the CLI git clone command.

Signed-off-by: Ferry Huberts <redacted>
Thanks.  "jgit clone" also needed this added.  I did that in
a small followup patch.

Really though we need to fix the abstraction of Repository so there's
a notion of a bare repository, and a repository+worktree.  And that
abstraction should then set the core.bare property accordingly
when creating a new repository (or new repository+worktree).
Unfortunately that hasn't happened yet...
+		/* we're setting up for a clone with a checkout */
+		local.getConfig().setBoolean("core", null, "bare", false);
+		
-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help