1
0
Fork 0

* work on no-auth-cache 'creation'

pull/410/head
till 2012-03-09 13:47:53 +01:00
parent 978d4c145d
commit a8287118ed
1 changed files with 12 additions and 1 deletions

View File

@ -218,6 +218,16 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
return $this->branches; return $this->branches;
} }
/**
* Return the no-auth-cache switch.
*
* @return string
*/
public function getSvnAuthCache()
{
return '--no-auth-cache ';
}
/** /**
* A method to create the svn commands run. * A method to create the svn commands run.
* *
@ -254,9 +264,10 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
if ($this->useAuth !== true) { if ($this->useAuth !== true) {
return ''; return '';
} }
$str = ' --no-auth-cache --username %s --password %s '; $str = ' %s--username %s --password %s ';
return sprintf( return sprintf(
$str, $str,
$this->getSvnAuthCache(),
escapeshellarg($this->svnUsername), escapeshellarg($this->svnUsername),
escapeshellarg($this->svnPassword) escapeshellarg($this->svnPassword)
); );