# git "thin" submodule clone to feed "describe"

3 messages from 2016-02-23 to 2016-02-24. Participants: Martin Langhoff, Junio C Hamano.
Thread: https://gitlist.dev/t/41489

## Martin Langhoff, 2016-02-23 21:03

Subject: git "thin" submodule clone to feed "describe"
Message-ID: <CACPiFCLnXLdt5rLuX0a3pTS3OphKW=1oVKxyYpwvSLhY7ydb2g@mail.gmail.com>
URL: https://gitlist.dev/e/CACPiFCLnXLdt5rLuX0a3pTS3OphKW%3D1oVKxyYpwvSLhY7ydb2g%40mail.gmail.com

```
Hi git list! long time no see! :-) Been missing you lots.

Do we currently have any means to clone _history_ but not _blobs_ of a
repo, or some approximation thereof?

With a bit more context: If I have a top-level project using a couple
dozen submodules, where the submodules are huge, do I have a
git-native means of running git-describe on each submodule without
pulling the whole thing down?

In this context, most developers want to get full checkout of some
submodules, but not of all; and 'git describe' of the submodules is
needed to 'shim' the missing submodules appropriately.

If the answer is no, there's a bunch of ways I can carry that as extra
data in the top level project. It's possible, yet inelegant &
duplicative.

thanks,



martin
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff

```

## Junio C Hamano, 2016-02-23 21:33

Subject: Re: git "thin" submodule clone to feed "describe"
Message-ID: <xmqq1t83yuv6.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqq1t83yuv6.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <CACPiFCLnXLdt5rLuX0a3pTS3OphKW=1oVKxyYpwvSLhY7ydb2g@mail.gmail.com>

```
Martin Langhoff <martin.langhoff@gmail.com> writes:

> Hi git list! long time no see! :-) Been missing you lots.
>
> Do we currently have any means to clone _history_ but not _blobs_ of a
> repo, or some approximation thereof?
>
> With a bit more context: If I have a top-level project using a couple
> dozen submodules, where the submodules are huge, do I have a
> git-native means of running git-describe on each submodule without
> pulling the whole thing down?

No, I do not think so.

```

## Martin Langhoff, 2016-02-24 01:28

Subject: Re: git "thin" submodule clone to feed "describe"
Message-ID: <CACPiFCJ216dx9s6YynH2d8StyNxR4zci9OhGKH4BbJXXf4SSUA@mail.gmail.com>
URL: https://gitlist.dev/e/CACPiFCJ216dx9s6YynH2d8StyNxR4zci9OhGKH4BbJXXf4SSUA%40mail.gmail.com
In-Reply-To: <xmqq1t83yuv6.fsf@gitster.mtv.corp.google.com>

```
On Tue, Feb 23, 2016 at 4:33 PM, Junio C Hamano <gitster@pobox.com> wrote:
> No, I do not think so.

Thanks. I will probably setup a pre-commit hook at the top level
project to update a submodule metadata file.

Not the prettiest but... :-)



m
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff

```
