1
0
Fork 0

Merge pull request #1950 from rovangju/master

Added realpath to VcsDriver constructor to address issues with relative file paths...
pull/1945/merge
Jordi Boggiano 2013-05-30 02:09:03 -07:00
commit c0679232e2
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,13 @@ abstract class VcsDriver implements VcsDriverInterface
*/
final public function __construct(array $repoConfig, IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)
{
if (self::isLocalUrl($repoConfig['url'])) {
$repoConfig['url'] = realpath(
preg_replace('/^file:\/\//', '', $repoConfig['url'])
);
}
$this->url = $repoConfig['url'];
$this->originUrl = $repoConfig['url'];
$this->repoConfig = $repoConfig;