Just to let you guys know. I'm working on a solution. A new
configuration option will be used :git_recursive_submodules
I found space for a bit of code optimization too. Instead of these
commands
execute << "#{git} submodule #{verbose} init"
execute << "#{git} submodule #{verbose} sync"
execute << "#{git} submodule #{verbose} update #{submodule_recursive}"
I found out you can pass the --recursive flag to git clone, although
this is only if you have submodules and recursion enabled. I see no
reason why it should be a configurable option. Any cons to this?
Here's the description for the flag:
After the clone is created, initialize all submodules within, using
their default settings. This is equivalent to running git submodule
update --init --recursive immediately after the clone is finished.
This option is ignored if the cloned repository does not have a
worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or --
mirror is given)
On Jun 8, 8:06 pm, "Rafael G." <
r...@aspgems.com> wrote:
> Recently I have a problem with Git Submodule Recursive and I had to use
> a plugin to solve this problem.
>
> I think that this solution(add --recursive option as default) if it
> don't produce any gotcha/error/... it could be a default. Anyway a path
> to let add options freely is welcome :)
>
> Regards
>
> El 08/06/10 09:26, Lee Hambley escribi�:
>
>
>
>
>
> > Mathew,
>
> > Sure that works - but a nicer solution would be to allow configurable
> > git options via the standard config interface - I might work on that a
> > little today and see what come up with.
>
> > - Lee
>
> > On 8 June 2010 14:30,
thepixeldevelo...@googlemail.com
> > <mailto:
thepixeldevelo...@googlemail.com>
> > <
thepixeldevelo...@googlemail.com
> > <mailto:
thepixeldevelo...@googlemail.com>> wrote:
>
> > Not being a ruby programmer I thought it would be as easy as appending
> > "--recursive" to the command. I'm out of my depth, so I'll have to let
> > someone more qualified do the work (happy to learn how it's done
> > though).
>
> > -Mathew
>
> > <mailto:
lee.hamb...@gmail.com>> wrote:
> > > Matthew,
>
> > > I need to make this a bigger patch to allow people to set their
> > git options,
> > > as the recursive thing isn't required for everyone � although it
> > does make
> > > sense; happy to work with you on this, or take a patch - your call.
>
> > > - Lee
>
> > > On 8 June 2010 14:05,
thepixeldevelo...@googlemail.com
> > <mailto:
thepixeldevelo...@googlemail.com> <
>
> > >
thepixeldevelo...@googlemail.com
> >
capis...@googlegroups.com <mailto:
capis...@googlegroups.com>
> > <mailto:
capistrano%2Bunsu...@googlegroups.com><capistrano%2Bunsubscribe @googlegrou
> >
ps.com <
http://ps.com>>For more options, visit this group at
> > <mailto:
capis...@googlegroups.com>
> > <mailto:
capistrano%2Bunsu...@googlegroups.com> For more
> Rafa