module BasicSubmodulePrimitives
Public Instance Methods
update_submodules(**options)
click to toggle source
Extend Git::Lib
to support shotgunning submodules. This command is not smart, and it has very poor support for submodule options. For example, you can’t pass any arguments to the handful of submodule options that accept them (like –depth). We may extend it later, but for rev. 0001, simply initializing them will suffice
# File lib/git/basic_submodules.rb, line 9 def update_submodules(**options) arr_opts = ['update'] options.each_pair do |k, v| arr_opts << "--#{k}" if v end Dir.chdir(@git_work_dir) do command('submodule', arr_opts) end end