diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-12-02 20:51:35 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-12-02 20:51:35 +0000 |
commit | c3db2b2c449e21d0358f1ed4b7a5dd447477ac28 (patch) | |
tree | 54fc45aeaa012604beb7a990b9d831dbf6e70736 /sync-all | |
parent | 4b4f014b4fee106a4f575a1e335e1cf972edb14f (diff) | |
download | haskell-c3db2b2c449e21d0358f1ed4b7a5dd447477ac28.tar.gz |
Tweak sync-all
It wasn't handling new submodules appearing
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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/) { |