Skip to content

Commit

Permalink
composer#11917 fix: Possibility to handle long URLs
Browse files Browse the repository at this point in the history
(cherry picked from commit c7b91fc)
  • Loading branch information
p24-max committed Apr 5, 2024
1 parent 9191533 commit 3ec06dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Repository/Vcs/GitDriver.php
Expand Up @@ -52,7 +52,7 @@ public function initialize()
throw new \RuntimeException('GitDriver requires a usable cache directory, and it looks like you set it to be disabled');
}

$this->repoDir = $this->config->get('cache-vcs-dir') . '/' . Preg::replace('{[^a-z0-9.]}i', '-', $this->url) . '/';
$this->repoDir = $this->config->get('cache-vcs-dir') . '/' . md5($this->url) . '/';

GitUtil::cleanEnv();

Expand Down

0 comments on commit 3ec06dd

Please sign in to comment.