本文介绍了在#connect上获得Rugged :: NetworkError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试实现fetch,并引发此异常:
I tried to implement fetch and this exception was raised:
我可以检索远程实例:
I am able to retrieve a remote instance:
remote = Rugged::Remote.lookup(repo, remote_name)
remote.connect(:fetch)
# => Rugged::NetworkError: This transport isn't implemented. Sorry
我检索了开发
版本的宝石按照README中的指示:
I retrieved the development
version of the gem as directed in the README:
gem 'rugged', git: 'git://github.com/libgit2/rugged.git', branch: 'development', submodules: true
如何获取连接方法?
推荐答案
libgit2使用openssl进行HTTPS,libssh2使用ssh。你需要为他们开发软件包,以便嵌入式libgit2能够支持这些传输。
libgit2 uses openssl for HTTPS and libssh2 for ssh. You need the development packages for them in order for the embedded libgit2 to build with support for those transports.
这篇关于在#connect上获得Rugged :: NetworkError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!