* added a method to return the credential string for the svn command
parent
e18a4f7d31
commit
275d1c9969
|
@ -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}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue