Skip to content

Commit 76342f9

Browse files
authored
Switch to https for cgit.drupalcode.org (drupal-composer#76)
1 parent 5be9ba9 commit 76342f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ of your root `composer.json`.
3030
{
3131
"extra": {
3232
"drupal-scaffold": {
33-
"source": "http://cgit.drupalcode.org/drupal/plain/{path}?h={version}",
33+
"source": "https://cgit.drupalcode.org/drupal/plain/{path}?h={version}",
3434
"excludes": [
3535
"google123.html",
3636
"robots.txt"

src/Handler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ protected function getOptions() {
322322
'excludes' => [],
323323
'includes' => [],
324324
'initial' => [],
325-
'source' => 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}',
325+
'source' => 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}',
326326
// Github: https://raw.githubusercontent.com/drupal/drupal/{version}/{path}
327327
];
328328
return $options;
@@ -346,7 +346,7 @@ protected function getIncludesDefault() {
346346
/**
347347
* Files from 8.3.x
348348
*
349-
* @see http://cgit.drupalcode.org/drupal/tree/?h=8.3.x
349+
* @see https://cgit.drupalcode.org/drupal/tree/?h=8.3.x
350350
*/
351351
$common = [
352352
'.csslintrc',

tests/FetcherTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function ensureDirectoryExistsAndClear($directory) {
5656
}
5757

5858
public function testFetch() {
59-
$fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO());
59+
$fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO());
6060
$fetcher->setFilenames([
6161
'.htaccess' => '.htaccess',
6262
'sites/default/default.settings.php' => 'sites/default/default.settings.php',
@@ -65,9 +65,9 @@ public function testFetch() {
6565
$this->assertFileExists($this->tmpDir . '/.htaccess');
6666
$this->assertFileExists($this->tmpDir . '/sites/default/default.settings.php');
6767
}
68-
68+
6969
public function testInitialFetch() {
70-
$fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO());
70+
$fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO());
7171
$fetcher->setFilenames([
7272
'sites/default/default.settings.php' => 'sites/default/settings.php',
7373
]);

0 commit comments

Comments
 (0)