Re: [PATCH 2/2] git-init: set receive.guardCurrentBranch = true for non-bare repositories

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Monday, March 24, 2008 - 3:08 pm

On Mon, 24 Mar 2008, Johannes Schindelin wrote:


The use cases I've seen for pushing into a non-bare repository seem to be 
cases in which "refs/heads/" isn't really local; it's only updated by push 
from elsewhere, and it's named "refs/heads/" because that's where public 
branches are served from. This suggests we could have:

	core.noLocalBranches: true

with the implications:

 - it's definitely okay to push to refs/heads/
 - HEAD is always detached.

That seems to me to accurately describe a repository used to hold branches 
for public consumption and where there's a work tree for testing and 
building, rather than development. (I.e., work tree operations only read 
the repository.)

	-Daniel
*This .sig left intentionally blank*
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] git-init: set receive.guardCurrentBranch = ..., Johannes Schindelin, (Mon Mar 24, 10:10 am)
Re: [PATCH 2/2] git-init: set receive.guardCurrentBranch = ..., Daniel Barkalow, (Mon Mar 24, 3:08 pm)
Re: [PATCH 2/2] git-init: set receive.guardCurrentBranch = ..., Johannes Schindelin, (Mon Mar 24, 3:31 pm)