Subject: Re: [boost] [git-help] Clone / fetch specific submodule SHA?
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2013-12-24 16:33:05
On Tue, Dec 24, 2013 at 3:28 PM, Rene Rivera <grafikrobot_at_[hidden]> wrote:
> On Tue, Dec 24, 2013 at 3:12 PM, Beman Dawes <bdawes_at_[hidden]> wrote:
>> On Tue, Dec 24, 2013 at 3:16 PM, Rene Rivera <grafikrobot_at_[hidden]>
>> > 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?
> Yes, and no.. submodule update "checks out" the SHA of the commit in the
> reference of the superproject. It doesn't fetch or clone anything. What I'm
> asking is if there's a way to, give that I have the superproject (shallow
> clone, or partial history) to first fetch/clone the SHA of referenced in
> the superproject *only* and then update to that fetched SHA *only*.
PS. The reason I ask is because waiting the 5 to 10 minutes for all the
submodules to clone for the testing scripts, i.e. the time I'm waiting
around to see if changes I made to the testing scripts work, is getting
rather depressing and annoying.
-- -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo