On Tue, Dec 24, 2013 at 3:12 PM, Beman Dawes
On Tue, Dec 24, 2013 at 3:16 PM, Rene Rivera
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?
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*. -- -- -- 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