From 15b148592f003604740fb3fda0ab398b2b125a18 Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Wed, 1 Jun 2011 10:52:29 -0500 Subject: [PATCH] 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. --- init-repository | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init-repository b/init-repository index 2d104fde..dd9f7233 100755 --- a/init-repository +++ b/init-repository @@ -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);