On Sat, Feb 02, 2008 at 12:35:29PM -0700, Jon Wilson wrote:
> I find that with submodules it is most useful to have them all be bare
> repositories, so that when you push to it, you can pull from that repo
> outside of the supermodule without having to run git checkout -f from
> within the submodule.

In general, any repository that you push to should be bare.  If you push
to a non-bare repository, you'll end up confusing yourself at some
point.  I think that making submodules be bare is just a special case of
this.

By the way, it's probably good that Michael got two answers to his
question.  It's a bit confusing, especially since it's a relatively new
feature in Git.  Although submodules are reliable, there are still a few
rough edges in the tools for working with them.

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

Attachment: pgpaiI2jLodwb.pgp
Description: PGP signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to