1
0
Fork 0

* use askConfirmation() instead

pull/410/head
till 2012-03-12 17:28:13 +01:00
parent 244cc2a8c2
commit a1e1a8c7d7
1 changed files with 2 additions and 4 deletions

View File

@ -96,10 +96,8 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
$this->svnPassword = $this->io->askAndHideAnswer("Password"); $this->svnPassword = $this->io->askAndHideAnswer("Password");
$this->useAuth = true; $this->useAuth = true;
static $cacheTrueAnswers = array('yes', 'y', 'true', 'ja', 'si', 'da'); $pleaseCache = $this->io->askConfirmation("Should Subversion cache these credentials?", false);
if ($pleaseCache === true) {
$cacheAnswer = strtolower(trim($this->io->ask("Should Subversion cache these credentials?", 'no')));
if (in_array($cacheAnswer, $cacheTrueAnswers)) {
$this->useCache = true; $this->useCache = true;
} }