mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 17:56:11 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user