浏览代码

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