Re: [Development] What is fastest way to checkout stable branch for every submodule for qt5 repository?

2012-12-21 Thread Mark
On Fri, Dec 21, 2012 at 9:54 AM, Sergio Ahumada
 wrote:
> On 12/21/2012 09:50 AM, liang jian wrote:
>>  I have an old clone of qt5 which have only master branch, to
>> update this clone I use the following command:
>>
>>  git pull
>>  git branch stable origin/stable
>>  git submodule foreach --recursive 'git checkout stable'
>>
>
> git submodule foreach 'git checkout stable ||:'
>
>
> --
> Sergio Ahumada
> s...@sansano.inf.utfsm.cl
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

checkout the qt5 meta module
.. follow procedure for init module stuff ..
git checkout 

If you already have the meta module then it's just:
git checkout 

That will get all repos to the branch you entered.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] What is fastest way to checkout stable branch for every submodule for qt5 repository?

2012-12-21 Thread Sergio Ahumada
On 12/21/2012 09:50 AM, liang jian wrote:
>  I have an old clone of qt5 which have only master branch, to
> update this clone I use the following command:
>
>  git pull
>  git branch stable origin/stable
>  git submodule foreach --recursive 'git checkout stable'
>

git submodule foreach 'git checkout stable ||:'


-- 
Sergio Ahumada
s...@sansano.inf.utfsm.cl
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] What is fastest way to checkout stable branch for every submodule for qt5 repository?

2012-12-21 Thread liang jian
I have an old clone of qt5 which have only master branch, to
update this clone I use the following command:

git pull
git branch stable origin/stable
git submodule foreach --recursive 'git checkout stable'

The third command will fail since there is no stable branch in
qtqa, I have to checkout stable branch one by one for each
sub-repository.
Is there any faster way to do this ? I know this is a stupid
question, but I really don't know how to achieve that.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development