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


On 6 June 2016 at 10:39, 
<s.jar...@esa-grimma.de<mailto:s.jar...@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
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to