From a8287118ed8dd99d126eed9817796f5141fa16cc Mon Sep 17 00:00:00 2001 From: till Date: Fri, 9 Mar 2012 13:47:53 +0100 Subject: [PATCH] * work on no-auth-cache 'creation' --- src/Composer/Repository/Vcs/SvnDriver.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index 2e602b0cc..82d2d3570 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -218,6 +218,16 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface 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. * @@ -254,9 +264,10 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface if ($this->useAuth !== true) { return ''; } - $str = ' --no-auth-cache --username %s --password %s '; + $str = ' %s--username %s --password %s '; return sprintf( $str, + $this->getSvnAuthCache(), escapeshellarg($this->svnUsername), escapeshellarg($this->svnPassword) );