login
Header Space

 
 

Re: question about git-submodule

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eran Tromer <git2eran@...>
Cc: Alex Riesen <raa.lkml@...>, VMiklos <vmiklos@...>, <git@...>
Date: Sunday, August 5, 2007 - 10:59 am

On Fri, Aug 03, 2007 at 07:01:38PM -0400, Eran Tromer wrote:

You probably don't want to do this as this URL
probably won't work for anyone who wants to clone
your superproject.


Do you want to use the submodule porcelain or just the plumbing?
If you simply want to add a submodule locally, "git add" will do that for
you just fine.  It's only when you want to make it easier for people who
clone your superproject to get updates of the submodules that you
should set up the information required by "git submodule" in .gitmodules
(see end of module_add in git-submodule.sh).

Note that the "url" can be set directly in your git config
(without specifying it in .gitmodules), but then anyone who clones
from you will have to modify his config "manually" too.
For some reason, the "path" element is required, even if it is equal
to the submodule name.

skimo
-
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:
question about git-submodule, VMiklos, (Fri Jul 13, 5:46 pm)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 4:39 am)
Re: question about git-submodule, Alex Riesen, (Sun Jul 15, 6:47 am)
Re: question about git-submodule, Eran Tromer, (Fri Aug 3, 7:01 pm)
Re: question about git-submodule, Sven Verdoolaege, (Sun Aug 5, 10:59 am)
Re: question about git-submodule, Eran Tromer, (Mon Aug 6, 1:23 pm)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 7:51 am)
Re: question about git-submodule, Alex Riesen, (Sun Jul 15, 9:42 am)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 9:52 am)
Re: question about git-submodule, VMiklos, (Sun Jul 15, 6:54 am)
Re: question about git-submodule, Alex Riesen, (Sun Jul 15, 9:50 am)
Re: question about git-submodule, VMiklos, (Sun Jul 15, 9:54 am)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 10:02 am)
Re: question about git-submodule, VMiklos, (Sun Jul 15, 10:26 am)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 10:48 am)
Re: question about git-submodule, VMiklos, (Sun Jul 15, 11:05 am)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 11:21 am)
Re: question about git-submodule, VMiklos, (Sun Jul 15, 11:40 am)
Re: question about git-submodule, Sven Verdoolaege, (Sun Jul 15, 5:45 pm)
Re: question about git-submodule, VMiklos, (Sun Jul 15, 6:29 pm)
Re: question about git-submodule, Sven Verdoolaege, (Mon Jul 16, 6:39 am)
Re: question about git-submodule, VMiklos, (Mon Jul 16, 7:07 am)
speck-geostationary