From 7f03fad391dfc39b03aa36c9e049b707b6ca7ff1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 16 Oct 2013 18:07:09 +0200 Subject: [PATCH] Revert "Code cleanup, refs #2316" This reverts commit 6e3cfb5fea364d726ab3a44876fc09327cd4d97c. --- src/Composer/Repository/Vcs/GitDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index 143144712..e2a3a9eb0 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/src/Composer/Repository/Vcs/GitDriver.php @@ -80,7 +80,7 @@ class GitDriver extends VcsDriver $this->getTags(); $this->getBranches(); - $this->cache = new Cache($this->io, $this->config->get('cache-repo-dir').'/'.$this->url); + $this->cache = new Cache($this->io, $this->config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $this->url)); } /**