summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-12-19 10:13:09 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-12-20 14:19:27 +0000
commit54a3963196cc3146f01543514882efaa8506c543 (patch)
tree3d8a1ea348d035dfe187975e637c6e1e8f5c856b /sync-all
parent3394d49af13697626145aca6d80b65ae8661418c (diff)
downloadhaskell-54a3963196cc3146f01543514882efaa8506c543.tar.gz
'sync-all get -q' also passes -q to 'git submodule'
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all10
1 files changed, 6 insertions, 4 deletions
diff --git a/sync-all b/sync-all
index 225ad36a44..ce613467da 100755
--- a/sync-all
+++ b/sync-all
@@ -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);
}
}
}