Default to --ignore-submodules for --nokia-developer/--brisbane

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.
This commit is contained in:
Marius Storm-Olsen
2011-06-01 10:52:29 -05:00
parent c250ff7715
commit 15b148592f

View File

@@ -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);