make it actually possible to specify 'ignore' as a class
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Wed, 20 Apr 2016 12:21:25 +0000 (14:21 +0200)
committerLiang Qi <liang.qi@qt.io>
Thu, 5 May 2016 20:02:39 +0000 (20:02 +0000)
another thing the doc claims to be possible - also quite reasonably.

Change-Id: I2220245b10f02a778345b6549e345b2486630ffd
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
init-repository

index a5773e6..2580b0f 100755 (executable)
@@ -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 {