From a1ec8795c67bb154195a774544b3614fdd729d3d Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 20 Apr 2016 14:21:25 +0200 Subject: 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 --- init-repository | 2 ++ 1 file changed, 2 insertions(+) (limited to 'init-repository') 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 { -- cgit v1.2.3