Boost logo

Boost :

Subject: Re: [boost] [git-help] Clone / fetch specific submodule SHA?
From: Beman Dawes (bdawes_at_[hidden])
Date: 2013-12-24 16:12:36


On Tue, Dec 24, 2013 at 3:16 PM, Rene Rivera <grafikrobot_at_[hidden]> wrote:

> Does anyone know of a way to do a submodule update and clone that only
> fetches a specific SHA? In particular the SHA referenced in the
> superproject?
>

Isn't that what git submodule update does if you give it a path to the
submodule? Assuming the super-project is on branch master, of course. So
for Boost.Timer, do:

cd modular-boost # if needed
git checkout master # if needed
git submodule update libs/timer

Or did I misunderstand your question?

--Beman


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