lib/builderator/tasks/vendor.rb in builderator-1.1.9 vs lib/builderator/tasks/vendor.rb in builderator-1.1.10
- old
+ new
@@ -78,9 +78,14 @@
run "git pull #{ params.fetch(:remote, 'origin') } #{ params.fetch(:branch, 'master') }"
end
## Apply relative subdirectory
run "git filter-branch --subdirectory-filter \"#{ params.rel }\" --force" if params.has?(:rel)
+
+ ## Update Submodules
+ if path.join('.gitmodules').exist?
+ run "git submodule update --init --recursive"
+ end
end
end
def _fetch_github(path, params)
params.git = "git@github.com:#{ params.github }.git"