Skip to content

git_transport_register smart subtransport with custom payload #2500

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions