Adam Megacz <adam@xxxxxxxxxx> wrote: > "Shawn O. Pearce" <spearce@xxxxxxxxxxx> writes: > > That should already be the case. Did you create the bare repository > > by taking a copy of a non-bare's .git directory? Check your bare > > repository's config file and see if core.bare = false, if so set > > it to true to signal it really is bare. > > Hrm, is there a reason why this is explicitly configured rather than > detected? I don't know why we do this. I think its because the guessing logic can guess wrong sometimes. > I was under the impression that you could create a bare repository by > simply throwing away the working tree and renaming ".git" to any other > name, but I guess I was wrong. If you delete the setting from the configuration file, Git usually almost always guesses correctly. :-) Its rare to see it fail. But I think it can fail if you create a file called HEAD in the top level of your source code tree. (For example.) -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html