diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-12-19 10:13:09 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-12-20 14:19:27 +0000 |
commit | 54a3963196cc3146f01543514882efaa8506c543 (patch) | |
tree | 3d8a1ea348d035dfe187975e637c6e1e8f5c856b /sync-all | |
parent | 3394d49af13697626145aca6d80b65ae8661418c (diff) | |
download | haskell-54a3963196cc3146f01543514882efaa8506c543.tar.gz |
'sync-all get -q' also passes -q to 'git submodule'
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -773,21 +773,23 @@ sub main { scmall ($command, @_); + my @submodule_args = grep(/^-q/,@_); + if ($command eq "get") { - &scm(".", "git", "submodule", "init"); + &scm(".", "git", "submodule", "init", @submodule_args); } if ($command eq "pull") { my $gitConfig = &tryReadFile(".git/config"); if ($gitConfig !~ /submodule/) { - &scm(".", "git", "submodule", "init"); + &scm(".", "git", "submodule", "init", @submodule_args); } } if ($command eq "get" or $command eq "pull") { my $gitConfig = &tryReadFile(".git/config"); if ($gitConfig !~ /submodule/) { - &scm(".", "git", "submodule", "init"); + &scm(".", "git", "submodule", "init", @submodule_args); } - &scm(".", "git", "submodule", "update"); + &scm(".", "git", "submodule", "update", @submodule_args); } } } |