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