Discussion:
[yocto] How to execute a git submodule init/update?
S***@esa-grimma.de
9 years ago
Permalink
Hej

I have a git source which need some submodules. For that I need to execute
"git submodule init" and "git submodule update". Any idea how to do it in
a comon way?

Regards!

Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: ***@esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten
haben, informieren Sie bitte sofort den Absender und löschen Sie diese
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is
strictly
forbidden.
Burton, Ross
9 years ago
Permalink
On 6 June 2016 at 10:39, <***@esa-grimma.de> wrote:

> I have a git source which need some submodules. For that I need to execute
> "git submodule init" and "git submodule update". Any idea how to do it in a
> comon way?
>

Use the gitsm: fetcher, which will do that for you.

Ross
Fred Ollinger
9 years ago
Permalink
$ git submodule init

$ git submodule update


Also, there's git submodule foreach which allows you to do the same thing to each submodule (such as checkout a different branch).


Frederick

________________________________
From: yocto-***@yoctoproject.org <yocto-***@yoctoproject.org> on behalf of Burton, Ross <***@intel.com>
Sent: Monday, June 6, 2016 3:06 AM
To: ***@esa-grimma.de
Cc: ***@yoctoproject.org
Subject: Re: [yocto] How to execute a git submodule init/update?


On 6 June 2016 at 10:39, <***@esa-grimma.de<mailto:***@esa-grimma.de>> wrote:
I have a git source which need some submodules. For that I need to execute "git submodule init" and "git submodule update". Any idea how to do it in a comon way?

Use the gitsm: fetcher, which will do that for you.

Ross
--
Christopher Larson
9 years ago
Permalink
Use gitsm:// in your SRC_URI rather than git://.

On Mon, Jun 6, 2016 at 3:06 AM, Burton, Ross <***@intel.com> wrote:

>
> On 6 June 2016 at 10:39, <***@esa-grimma.de> wrote:
>
>> I have a git source which need some submodules. For that I need to
>> execute "git submodule init" and "git submodule update". Any idea how to do
>> it in a comon way?
>>
>
> Use the gitsm: fetcher, which will do that for you.
>
> Ross
>
> --
> _______________________________________________
> yocto mailing list
> ***@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
Loading...