1
0
Fork 0

* when an auth failure is detected and 'auth' is not present, we ask for credentials

* ... and repeat
pull/410/head
till 2012-03-08 16:53:41 +01:00
parent 44470da804
commit 59c1a7ff15
1 changed files with 11 additions and 0 deletions

View File

@ -72,6 +72,17 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
$svnCommand,
$output
);
// this could be any failure, but let's see if it's auth related
if ($status == 1) {
if ($this->useAuth === false && strpos($output, 'authorization failed:') !== false) {
$this->svnUsername = $this->io->ask("What's your svn username?");
$this->svnPassword = $this->io->ask("What's your svn password?");
$this->useAuth = true;
// restart the process
$output = $this->execute($command, $url);
}
}
return $output;
}