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

* only 'ask' the user if the session is interactive

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

+ 1 - 1
src/Composer/Repository/Vcs/SvnDriver.php

@@ -73,7 +73,7 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
             $output
         );
         // this could be any failure, but let's see if it's auth related
-        if ($status == 1) {
+        if ($status == 1 && $this->io->isInteractive()) {
             if ($this->useAuth === false && strpos($output, 'authorization failed:') !== false) {
                 $this->io->write("The Subversion server ({$this->baseUrl}) request credentials:");
                 $this->svnUsername = $this->io->ask("Username");