libgit2

git_transport_ssh_with_paths

Version:

Create an ssh transport with custom git command paths

This is a factory function suitable for setting as the transport callback in a remote (or for a clone in the options).

The payload argument must be a strarray pointer with the paths for the git-upload-pack and git-receive-pack at index 0 and 1.

Signature

int git_transport_ssh_with_paths(git_transport **out, git_remote *owner, void *payload);

Parameters

In
out

the resulting transport

In
owner

the owning remote

void *
In
payload

a strarray with the paths

Returns

int

0 or an error code

Versions