public function setSshCommand($sshCommand)
    {
        if (empty($sshCommand) || $sshCommand === 'ssh') {
            unset($this->env['GIT_SSH_COMMAND'], $this->env['GIT_SSH']);
        } elseif (!$this->supportsGitSshCommand()) {
            $this->env['GIT_SSH'] = $this->writeSshFile($sshCommand . " \$*\n");
        } else {
            $this->env['GIT_SSH_COMMAND'] = $sshCommand;
        }
    }
public function setSshCommand($sshCommand)
    {
        if (empty($sshCommand) || $sshCommand === 'ssh') {
            unset($this->env['GIT_SSH_COMMAND'], $this->env['GIT_SSH']);
        } elseif (!$this->supportsGitSshCommand()) {
            $this->env['GIT_SSH'] = $this->writeSshFile($sshCommand . " \$*\n");
        } else {
            $this->env['GIT_SSH_COMMAND'] = $sshCommand;
        }
    }
public function setSshCommand ( $ sshCommand ) { if ( empty ( $ sshCommand ) || $ sshCommand === 'ssh' ) { unset ( $ this -> env [ 'GIT_SSH_COMMAND' ] , $ this -> env [ 'GIT_SSH' ] ) ; } elseif ( ! $ this -> supportsGitSshCommand ( ) ) { $ this -> env [ 'GIT_SSH' ] = $ this -> writeSshFile ( $ sshCommand . " \$*\n" ) ; } else { $ this -> env [ 'GIT_SSH_COMMAND' ] = $ sshCommand ; } }
Set the SSH command for Git to use.

This will use GIT_SSH_COMMAND if supported, or GIT_SSH (and a temporary
file) otherwise.

@param string|null $sshCommand
The complete SSH command. An empty string or null will use Git's
default.
Set the SSH command for Git to use .