On 01/10/2012 12:30 PM, Werner LEMBERG wrote: > >> After doing the incantation described in section 2.8 of gnulib.pdf, >> namely >> >> $ dir=.gnulib >> $ git submodule add -- git://git.sv.gnu.org/gnulib.git $dir >> >> the user has to commit the submodule setup to the repository. It's >> probably worth to mention this. >> >> However, if I now say `git config --file .gitmodules --list' (I >> haven't touched the data within `.gitmodules'), I see >> >> submodule..gnulib.path=.gnulib >> submodule..gnulib.url=git://git.sv.gnu.org/gnulib.git >> >> Note the double dot. Interestingly, the name of the submodule is >> taken from the directory location, not the repository name. Maybe a >> git bug? I'm using version 1.7.8. > > According to a google search, this is a feature.
Odd. > > I'm unsure how to proceed. On one hand, I like `.gnulib' as the > submodule's directory. On the other hand, I don't like `.gnulib' as > the submodule name. It seems that it is impossible to do a `git > submodule add' for this setup... Libvirt uses .gnulib as the submodule's directory, but a single dot in .gitmodules. I guess if you hand-edit things after the fact, then it just works. But I don't know why 'git submodule add' doesn't have the ability to name the submodule 'gnulib' even when the directory it is stored in is named something else. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature