From 76342f9cd22a673b0b87b5e8774613f8ee287fbc Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Wed, 18 Apr 2018 18:14:55 +0200 Subject: [PATCH] Switch to https for cgit.drupalcode.org (#76) --- README.md | 2 +- src/Handler.php | 4 ++-- tests/FetcherTest.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ea52c70..03e1493 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ of your root `composer.json`. { "extra": { "drupal-scaffold": { - "source": "http://cgit.drupalcode.org/drupal/plain/{path}?h={version}", + "source": "https://cgit.drupalcode.org/drupal/plain/{path}?h={version}", "excludes": [ "google123.html", "robots.txt" diff --git a/src/Handler.php b/src/Handler.php index d4f1b42..8b81321 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -322,7 +322,7 @@ protected function getOptions() { 'excludes' => [], 'includes' => [], 'initial' => [], - 'source' => 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', + 'source' => 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', // Github: https://raw.githubusercontent.com/drupal/drupal/{version}/{path} ]; return $options; @@ -346,7 +346,7 @@ protected function getIncludesDefault() { /** * Files from 8.3.x * - * @see http://cgit.drupalcode.org/drupal/tree/?h=8.3.x + * @see https://cgit.drupalcode.org/drupal/tree/?h=8.3.x */ $common = [ '.csslintrc', diff --git a/tests/FetcherTest.php b/tests/FetcherTest.php index 0d88d8a..fd872c0 100644 --- a/tests/FetcherTest.php +++ b/tests/FetcherTest.php @@ -56,7 +56,7 @@ protected function ensureDirectoryExistsAndClear($directory) { } public function testFetch() { - $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO()); + $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO()); $fetcher->setFilenames([ '.htaccess' => '.htaccess', 'sites/default/default.settings.php' => 'sites/default/default.settings.php', @@ -65,9 +65,9 @@ public function testFetch() { $this->assertFileExists($this->tmpDir . '/.htaccess'); $this->assertFileExists($this->tmpDir . '/sites/default/default.settings.php'); } - + public function testInitialFetch() { - $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO()); + $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO()); $fetcher->setFilenames([ 'sites/default/default.settings.php' => 'sites/default/settings.php', ]);