Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用hound代码搜索引擎,通过ssh访问私有git存储库?_Git_Ssh - Fatal编程技术网

使用hound代码搜索引擎,通过ssh访问私有git存储库?

使用hound代码搜索引擎,通过ssh访问私有git存储库?,git,ssh,Git,Ssh,我正在尝试设置搜索我们的内部存储库。可以通过ssh URL访问这些存储库,这些URL如下所示: ssh://git.my_company.com/project/MyProjectA ssh://git.my_company.com/project/MyProjectB 在《猎犬》中我读到: 在配置中使用SSH样式的url:“url”:git@github.com:foo/bar.git”。只要您在Hound运行的盒子上设置了SSH密钥,这将起作用。 因此,我在config.json文件中添加

我正在尝试设置搜索我们的内部存储库。可以通过ssh URL访问这些存储库,这些URL如下所示:

ssh://git.my_company.com/project/MyProjectA
ssh://git.my_company.com/project/MyProjectB
在《猎犬》中我读到:

在配置中使用SSH样式的url:“url”:git@github.com:foo/bar.git”。只要您在Hound运行的盒子上设置了SSH密钥,这将起作用。

因此,我在config.json文件中添加了以下内容:

 "MyProjectA" : {
     "url" : "my_user@git.my_company.com/pkg/MyProjectA"
 }
但我觉得这不太正确,因为在快速入门示例中,url指向一个bar.git文件,但我没有一个并行的MyProjectA.git文件,所以实际上我指向的是存储库的根目录,在该目录下可以找到一个.git目录

而且,正如预期的那样,它会出现以下错误:

2017/01/25 15:05:00未能克隆我的_user@git.my_company.com/pkg/MyProjectA,见下面的输出 致命:存储库“我的”_user@git.my_company.com/pkg/MyProjectA'不存在


任何人都有一个线索,如果它是可能的工作,以及如何?我可以在本地克隆所有内容,但这意味着搜索引擎无法获取更改,这很遗憾。

以下非常明显的解决方案有效

"MyProjectA" : {
    "url" : "git.my_company.com/pkg/MyProjectA"
}