Commit c3db2b2c authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Tweak sync-all

It wasn't handling new submodules appearing
parent 4b4f014b
......@@ -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/) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment