Boost logo

Boost :

Subject: Re: [boost] [git][predef] Pull fails
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-01-26 15:39:10


On Mon, Jan 27, 2014 at 12:18 AM, Peter Dimov <lists_at_[hidden]> wrote:
> Andrey Semashev wrote:
>>
>> 'git pull' (in superproject) doesn't update submodules. I'm not even sure
>> it fetches their history, but I may be wrong.
>
>
> 'git pull' does update the submodule repositories for me. It doesn't update
> the files; 'git submodule update' does. What I do is:
>
> git pull
> git submodule update --init
> cd libs\mymodule
> git checkout develop

So basically, 'git pull' for supermodule does 'git fetch' for
submodules? Not quite intuitive, but it can speed up things a little.
Thanks.

What do you do when you want to update the repository when you have
local changes? 'git submodule update' would attempt to roll back
mymodule to some detached revision, wouldn't it?


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