MCPcopy Index your code
hub / github.com/git/git / get_ssh_command

Function get_ssh_command

connect.c:1125–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125static const char *get_ssh_command(void)
1126{
1127 const char *ssh;
1128
1129 if ((ssh = getenv("GIT_SSH_COMMAND")))
1130 return ssh;
1131
1132 if (!repo_config_get_string_tmp(the_repository, "core.sshcommand", &ssh))
1133 return ssh;
1134
1135 return NULL;
1136}
1137
1138enum ssh_variant {
1139 VARIANT_AUTO,

Callers 1

fill_ssh_argsFunction · 0.85

Calls 1

Tested by

no test coverage detected