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)

1 Answers1

0

You're passing in a plain TCP/IP URL, but expecting a connection to happen over SSH.

Dropping the "git:" should force dulwich to use SSH to clone.

jelmer
  • 2,405
  • 14
  • 27