* always run non-interactive
parent
907db48bb5
commit
a3e0a0805c
|
@ -257,25 +257,15 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if composer was called with --no-interaction/-n
|
* Always run commands 'non-interactive':
|
||||||
* and return the option string for the command.
|
* It's easier to spot issues because then the svn process would fail fast
|
||||||
|
* and not wait for user input.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
* @uses parent::$io
|
|
||||||
* @see IOInterface::isInteractive()
|
|
||||||
*/
|
*/
|
||||||
public function getSvnInteractiveSetting()
|
public function getSvnInteractiveSetting()
|
||||||
{
|
{
|
||||||
static $option;
|
return '--non-interactive ';
|
||||||
if ($option !== null) {
|
|
||||||
return $option;
|
|
||||||
}
|
|
||||||
if ($this->io->isInteractive() === false) {
|
|
||||||
$option = '--non-interactive ';
|
|
||||||
} else {
|
|
||||||
$option = '';
|
|
||||||
}
|
|
||||||
return $option;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue