aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-04-20 14:21:25 +0200
committerLiang Qi <liang.qi@qt.io>2016-05-05 20:02:39 +0000
commita1ec8795c67bb154195a774544b3614fdd729d3d (patch)
tree3b861eff72ea2fe3ccf0b4f2ca561664633c2974 /init-repository
parentc41d854254dbee488c454ec512ac0dfba1c38903 (diff)
make it actually possible to specify 'ignore' as a class
another thing the doc claims to be possible - also quite reasonably. Change-Id: I2220245b10f02a778345b6549e345b2486630ffd Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository2
1 files changed, 2 insertions, 0 deletions
diff --git a/init-repository b/init-repository
index a5773e66..2580b0f6 100755
--- a/init-repository
+++ b/init-repository
@@ -348,6 +348,8 @@ sub git_clone_all_submodules
@what = grep { ($subinits{$_} || 0) eq STS_DEPRECATED } keys %subbases;
} elsif ($mod eq "obsolete") {
@what = grep { ($subinits{$_} || 0) eq STS_OBSOLETE } keys %subbases;
+ } elsif ($mod eq "ignore") {
+ @what = grep { ($subinits{$_} || 0) eq 0 } keys %subbases;
} elsif (defined($subdirs{$mod})) {
push @what, $mod;
} else {