summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-12-02 20:51:35 +0000
committerIan Lynagh <ian@well-typed.com>2012-12-02 20:51:35 +0000
commitc3db2b2c449e21d0358f1ed4b7a5dd447477ac28 (patch)
tree54fc45aeaa012604beb7a990b9d831dbf6e70736 /sync-all
parent4b4f014b4fee106a4f575a1e335e1cf972edb14f (diff)
downloadhaskell-c3db2b2c449e21d0358f1ed4b7a5dd447477ac28.tar.gz
Tweak sync-all
It wasn't handling new submodules appearing
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all9
1 files changed, 9 insertions, 0 deletions
diff --git a/sync-all b/sync-all
index 9a2f753ae6..414aa8bb5d 100755
--- a/sync-all
+++ b/sync-all
@@ -773,6 +773,15 @@ sub main {
scmall ($command, @_);
+ if ($command eq "get") {
+ &scm(".", "git", "submodule", "init");
+ }
+ if ($command eq "pull") {
+ my $gitConfig = &tryReadFile(".git/config");
+ if ($gitConfig !~ /submodule/) {
+ &scm(".", "git", "submodule", "init");
+ }
+ }
if ($command eq "get" or $command eq "pull") {
my $gitConfig = &tryReadFile(".git/config");
if ($gitConfig !~ /submodule/) {