From 5ff142329831c95c968731944edd4389795c829f Mon Sep 17 00:00:00 2001 From: Stephan Vock Date: Fri, 19 Jun 2020 10:24:40 +0100 Subject: [PATCH 1/2] GitDriver: use authentication for supports check --- src/Composer/Repository/Vcs/GitDriver.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index cc6e3edb4..1900c6321 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/src/Composer/Repository/Vcs/GitDriver.php @@ -219,8 +219,17 @@ class GitDriver extends VcsDriver return false; } - $process = new ProcessExecutor($io); + $gitUtil = new GitUtil($io, $config, new ProcessExecutor($io), new Filesystem()); + GitUtil::cleanEnv(); + + try { + $gitUtil->runCommand(function ($url) { + return 'git ls-remote --heads ' . ProcessExecutor::escape($url); + }, $url, null); + } catch (\RuntimeException $e) { + return false; + } - return $process->execute('git ls-remote --heads ' . ProcessExecutor::escape($url), $output) === 0; + return true; } } From e55a019b8d876c2babc80436f2828aa562ee5e8b Mon Sep 17 00:00:00 2001 From: Grummfy Date: Fri, 19 Jun 2020 13:32:31 +0200 Subject: [PATCH 2/2] replace toran with private packagist --- doc/articles/http-basic-authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/articles/http-basic-authentication.md b/doc/articles/http-basic-authentication.md index 7284e1c03..fad17d28f 100644 --- a/doc/articles/http-basic-authentication.md +++ b/doc/articles/http-basic-authentication.md @@ -4,7 +4,7 @@ # HTTP basic authentication -Your [Satis or Toran Proxy](handling-private-packages-with-satis.md) server +Your [Satis or Private Packagist](handling-private-packages-with-satis.md) server could be secured with http basic authentication. In order to allow your project to have access to these packages you will have to tell composer how to authenticate with your credentials.