1
0
Fork 0

* fixSvnUrl(): to prefix absolute paths with file://

pull/410/head
till 2012-03-18 16:36:03 +01:00
parent 66d53aafef
commit 6d1cdb3e45
1 changed files with 15 additions and 0 deletions

View File

@ -331,6 +331,21 @@ class SvnDriver extends VcsDriver
return $exit === 0;
}
/**
* An absolute path (leading '/') is converted to a file:// url.
*
* @param string $url
*
* @return string
*/
protected static function fixSvnUrl($url)
{
if (strpos($url, '/', 0) === 0) {
$url = 'file://' . $url;
}
return $url;
}
/**
* This is quick and dirty - thoughts?
*