1

I am trying clone a repository from a remote gitlab server using the python dulwich module. However I am getting the following error :

socket.error: [Errno 10061] No connection could be made because the target machine actively refused it.

There is no firewall blocking the connection because I am easily able to clone using ssh.

This is the code that I had used.

from dulwich import porcelain
porcelain.clone(url, path)
4

1 回答 1

0

您正在传递一个普通的 TCP/IP URL,但希望通过 SSH 进行连接。

删除“git:”应该会强制德威使用 SSH 进行克隆。

于 2018-06-11T20:38:42.603 回答