[yocto] How to execute a git submodule init/update?

Fred Ollinger Fred.Ollinger at seescan.com
Mon Jun 6 08:23:55 PDT 2016


 $ 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-bounces at yoctoproject.org <yocto-bounces at yoctoproject.org> on behalf of Burton, Ross <ross.burton at intel.com>
Sent: Monday, June 6, 2016 3:06 AM
To: S.Jaritz at esa-grimma.de
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] How to execute a git submodule init/update?


On 6 June 2016 at 10:39, <S.Jaritz at esa-grimma.de<mailto:S.Jaritz at 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



More information about the yocto mailing list