소스 검색

* 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");