Skip to content

Commit

Permalink
Switch to https for cgit.drupalcode.org (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
webflo committed Apr 18, 2018
1 parent 5be9ba9 commit 76342f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions tests/FetcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
]);
Expand Down

0 comments on commit 76342f9

Please sign in to comment.