Skip to content

git_transport_register smart subtransport with custom payload #2500

@csware

Description

@csware

Is there a way to propagate a payload to a smart subtransport (like ssh) on registration?

Right now I do it the following way (https://github.com/csware/TortoiseGit/blob/libgit2-plink-working2/src/libgit2/ssh-wintunnel.c):

    static git_smart_subtransport_definition ssh_wintunnel_subtransport_definition = { git_smart_subtransport_ssh_wintunnel, 0 };
    git_transport_register("ssh://", 2, git_transport_smart, &ssh_wintunnel_subtransport_definition);

As you can see, the payload of the git_transport_register function is used for the subtransport definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions