1
0
Fork 0

Store cached git repositories in user HOME to avoid file permission issues

pull/617/head
Jerome Tamarelle 2012-04-24 14:39:30 +02:00
parent fb0d89cce5
commit d489d2aa3c
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class GitDriver extends VcsDriver
if (static::isLocalUrl($this->url)) {
$this->repoDir = str_replace('file://', '', $this->url);
} else {
$this->repoDir = sys_get_temp_dir() . '/composer-' . preg_replace('{[^a-z0-9.]}i', '-', $this->url) . '/';
$this->repoDir = getenv('HOME') . '/.composer/cache.git/' . preg_replace('{[^a-z0-9.]}i', '-', $this->url) . '/';
// update the repo if it is a valid git repository
if (is_dir($this->repoDir) && 0 === $this->process->execute('git remote', $output, $this->repoDir)) {