1
0
Fork 0

* added a method to return the credential string for the svn command

pull/377/head
till 2012-03-02 19:46:11 +01:00
parent e18a4f7d31
commit 275d1c9969
1 changed files with 16 additions and 0 deletions

View File

@ -171,6 +171,22 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
return $this->branches;
}
/**
* Return the credential string for the svn command.
*
* --no-auth-cache when credentials are present
*
* @return string
*/
public function getSvnCredentialString()
{
if ($this->useAuth !== true) {
return '';
}
$str = ' --no-auth-cache --username "%s" --password "%s"';
return sprintf($str, $this->svnUsername, $this->svnPassword);
}
/**
* {@inheritDoc}
*/