Default to --ignore-submodules for --nokia-developer/--brisbane
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>
Wed, 1 Jun 2011 15:52:29 +0000 (10:52 -0500)
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>
Wed, 1 Jun 2011 15:52:29 +0000 (10:52 -0500)
When you use either --nokia-developer or --brisbane, changes
are that you're going to be working on one of the submodules
anyways, in which case, having git commands in top-level repo
work on submodules too is an annoyance.

init-repository

index 2d104fd..dd9f723 100755 (executable)
@@ -98,6 +98,8 @@ Skip the `git submodule update' command.
 Set git config to ignore submodules by default when doing operations on the
 qt5 repo, such as `pull', `fetch', `diff' etc.
 
+This option is default for --nokia-developer/--brisbane.
+
 After using this option, pass `--ignore-submodules=none' to git to override
 it as needed.
 
@@ -282,11 +284,13 @@ sub parse_arguments
             $self->{'protocol'}          = 'internal';
             $self->{'mirror-url'}        = $BNE_MIRROR_URL_BASE;
             $self->{'mirror-webkit-url'} = $BNE_MIRROR_WEBKIT_URL;
+            $self->{'ignore-submodules'} = 1;
         },
 
         'nokia-developer' => sub {
             $self->{'nokia-developer'}   = 1;
             $self->{'protocol'}          = 'internal';
+            $self->{'ignore-submodules'} = 1;
         },
     ) || pod2usage(2);