[Development] Switching remote url for qt5 git clone

Adam Light aclight at gmail.com
Fri Mar 27 17:06:41 CET 2015


On Fri, Mar 27, 2015 at 3:34 AM, Oswald Buddenhagen <
oswald.buddenhagen at theqtcompany.com> wrote:

> On Thu, Mar 26, 2015 at 04:37:15PM -0700, Thiago Macieira wrote:
> > On Thursday 26 March 2015 15:57:23 Adam Light wrote:
> > > I'd like to move my checkout to git://code.io.qt.
> > >
> > > I can use git remote set-url for the base and then for each submodule,
> but
> > > it seems like there must be a better (that is, automatic) way to do
> this.
> > > Any suggestions?
> >
> > git submodule foreach '
> >  git remote set-url origin `git config --get remote.origin.url | \
> >       sed s,gitorious.org,code.qt.io,`'
> >
> or
>
>   ./init-repository -f --branch --no-update
>
> that will also fix whatever else setup problems you have.
>
>
Thanks Oswald

That did the trick.

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150327/e0ffe878/attachment.html>


More information about the Development mailing list