Fix that sending multiple commands over SSH failed

The config object has to cloned before unsetting the transport because else the
transport is removed for all subsequent calls to CommandTransport::fromConfig().

fixes #8815
This commit is contained in:
Eric Lippmann 2015-04-01 13:53:44 +02:00
parent 5745c1fec4
commit 06d9e4113c
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ abstract class CommandTransport
*/
public static function fromConfig(ConfigObject $config)
{
$config = clone $config;
switch (strtolower($config->transport)) {
case RemoteCommandFile::TRANSPORT:
$transport = new RemoteCommandFile();