From 03085c8181447dbcc1cd5175e0be7317fad25122 Mon Sep 17 00:00:00 2001 From: Tom Klingenberg Date: Mon, 16 Oct 2023 18:29:27 +0200 Subject: [PATCH] Fix Git Driver to use supported Git VCS driver URL Otherwise the URL may not be supported since 3bb191a46 (Add support for env vars and ~ (for HOME) in repo paths for vcs and artifact repositories, fixes #11409 (#11453), 2023-05-07) --- src/Composer/Repository/VcsRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php index 02a5f9627..d10ad87a0 100644 --- a/src/Composer/Repository/VcsRepository.php +++ b/src/Composer/Repository/VcsRepository.php @@ -91,7 +91,7 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt 'svn' => 'Composer\Repository\Vcs\SvnDriver', ]; - $this->url = Platform::expandPath($repoConfig['url']); + $this->url = $repoConfig['url'] = Platform::expandPath($repoConfig['url']); $this->io = $io; $this->type = $repoConfig['type'] ?? 'vcs'; $this->isVerbose = $io->isVerbose();