Преглед изворни кода

* always run non-interactive

till пре 13 година
родитељ
комит
a3e0a0805c
1 измењених фајлова са 4 додато и 14 уклоњено
  1. 4 14
      src/Composer/Repository/Vcs/SvnDriver.php

+ 4 - 14
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 ';
     }
 
     /**