Boost logo

Boost :

Subject: Re: [boost] [Git] Documentation update
From: Dave Abrahams (dave_at_[hidden])
Date: 2013-02-13 12:18:53


on Wed Feb 13 2013, Rene Rivera <grafikrobot-AT-gmail.com> wrote:

> On Tue, Feb 12, 2013 at 10:07 AM, Dave Abrahams <dave_at_[hidden]> wrote:
>
>>
>> on Tue Feb 12 2013, Beman Dawes <bdawes-AT-acm.org> wrote:
>>
>> > On Tue, Feb 12, 2013 at 10:37 AM, Rene Rivera <grafikrobot_at_[hidden]>
>> wrote:
>> >> On Tue, Feb 12, 2013 at 8:25 AM, Beman Dawes <bdawes_at_[hidden]> wrote:
>> > ...
>> >>> I must be missing something. Why not just work through the python
>> >>> subprocess interface?
>> >>> As Dave points out, the git interaction is really simple, so isn't the
>> >>> subprocess approach sufficient?
>> >>>
>> >>
>> >> It's not sufficient.. As I can't rewrite the subrepo references to use
>> the
>> >> HTTPS protocol instead of the GIT protocol (which is how they are
>> currently
>> >> encoded)

We can fix that on our end of course.

>> Sure you can; Just git clone non-recursively and then edit the
>> .gitmodules file.
>>
>
> But then I have even more code that is managing a file I don't really
> want to manage.
>
> As opposed to now where I have about 150 lines of easy to read portable
> python code that does all the subrepo stuff while limiting the
> clone/pull/checkout to only the tested branch. And hence at least saving
> some disk space.

If you're trying to save disk, you could try using a shallow clone(?)

-- 
Dave Abrahams

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