Method: GGSM::Submodule#check_submodule
- Defined in:
- lib/ggsm/util/submodule.rb
#check_submodule(check = true) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ggsm/util/submodule.rb', line 7 def check_submodule(check=true) sub_str = `git submodule` if check && sub_str.empty? puts '所在目录工程下不存在Submodule,请检查所在目录!'.red exit 1 end correct_dir check_hooks end |