| 1123 | } |
| 1124 | |
| 1125 | static 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 | |
| 1138 | enum ssh_variant { |
| 1139 | VARIANT_AUTO, |
no test coverage detected