From 60e95aed76552c933743eee8b3f871d4ffae246f Mon Sep 17 00:00:00 2001 From: Justin Rovang Date: Wed, 29 May 2013 17:53:18 -0500 Subject: [PATCH] Added realpath to VcsDriver constructor See https://github.com/composer/composer/pull/1828 --- src/Composer/Repository/Vcs/VcsDriver.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Composer/Repository/Vcs/VcsDriver.php b/src/Composer/Repository/Vcs/VcsDriver.php index 777a11ea0..686975c5f 100644 --- a/src/Composer/Repository/Vcs/VcsDriver.php +++ b/src/Composer/Repository/Vcs/VcsDriver.php @@ -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;