From a3e0a0805cfc114ddb86d0df74dcd1a03a912aaa Mon Sep 17 00:00:00 2001 From: till Date: Thu, 8 Mar 2012 16:42:19 +0100 Subject: [PATCH] * always run non-interactive --- src/Composer/Repository/Vcs/SvnDriver.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index 05bc9bdda..6140f5b1c 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -257,25 +257,15 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface } /** - * Determine if composer was called with --no-interaction/-n - * and return the option string for the command. + * Always run commands 'non-interactive': + * It's easier to spot issues because then the svn process would fail fast + * and not wait for user input. * * @return string - * @uses parent::$io - * @see IOInterface::isInteractive() */ public function getSvnInteractiveSetting() { - static $option; - if ($option !== null) { - return $option; - } - if ($this->io->isInteractive() === false) { - $option = '--non-interactive '; - } else { - $option = ''; - } - return $option; + return '--non-interactive '; } /**