使用 Grit 处理 ruby/git 项目,但我无法以编程方式更新我的子模块。我弄清楚了 missing_method 函数如何映射到 git 以及如何使用它来执行未写入 grit 的任务,但是子模块更新函数似乎不起作用。
这是我的代码示例:
git = Grit::Git.new(@repository)
git.pull
pp git.submodule({:quiet => false, :verbose => true, :progress => true}, "update")
回报:
""
提前致谢!