Boost logo

Boost :

Subject: Re: [boost] Post-git forking process
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2013-11-22 20:15:30


Hi,

Klaim - Joël Lamotte wrote:
> Nathan Crookston wrote:
>
>> 3. Edit .gitmodules and change all the relative URLs to absolute, SSH
>> or HTTPS (whichever kind you or your company firewall likes).
>> - I ran `:%s/\.\./https:\/\/github.com\/boostorg\/utility.git/g` in
>> vim to use https.
>>
>
> By the way, what was the benefit of using relative paths for submodules?
> Also, isn't there a git command to automatically get the full paths?

There was a thread a few days ago where it was decided to use relative
paths to avoid needing to know whether the user wanted SSH or HTTPS.
It was feared that different companies would have different
restrictions, requiring everyone to either edit their .gitmodules
file, or use the insteadOf submodule modifier.

I was hoping we could simplify the instructions by using instead of to
sub an absolute path for a relative one:

git config url."https://github.com/boostorg/".insteadOf .. (and many
other incantations)

No luck so far :(

If we could then you only have to change the URL for those you've cloned.

I'm not sure I understand your last question. I assume you mean
automatically get the full paths for the submodule repositories. At
which point? When updating submodules?

Nate


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk