开发者

Grit's clone method is undefined?

I've recently started working on a project that uses git for storage and ruby as a front-end. The first version of my script used ruby-git, which was ok though pretty simple. When I needed to do more specific work with my commits and logs it was recommended that I move to grit. However, I've a road block early on- grit seems incapable of cloning remote reposito开发者_开发百科ries. All examples I've found using the Repository class create a local repository and searching through the source I've found Grit's clone method is undefined. What gives?

This is my first StackOverflow question, so thanks in advance for any help.


Since Git is well structured, Grit uses a method missing (Grit::Git#method_missing) to 'systematically' execute Git commands.

See link below for an example that should help you.

https://gist.github.com/731502

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜