[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: issues with git submodules and `bootstrap'

From: Eric Blake
Subject: Re: issues with git submodules and `bootstrap'
Date: Tue, 10 Jan 2012 14:27:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

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.


> 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   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]