Initialize submodules before updating them

Initialization cannot happen in parallel because every submodule has to
get written to .git/config.
This commit is contained in:
Adam Roben
2014-12-19 15:48:33 -05:00
parent 6a2bf3fd2f
commit 47b785a8fd
2 changed files with 2 additions and 1 deletions

View File

@@ -8,5 +8,6 @@ bundle config --local path vendor/gems
bundle check > /dev/null 2>&1 || bundle install
git submodule init
git submodule sync --quiet
script/fast-submodule-update

View File

@@ -25,7 +25,7 @@ def run_process(*args)
end
def update_submodule(submodule)
output, success = run_process("git", "submodule", "update", "--init", "--", submodule)
output, success = run_process("git", "submodule", "update", "--", submodule)
TaskResult.new(submodule, output, success)
end