Skip to content

Commit 13c1ffc

Browse files
authored
Replace cgit.drupalcode.org with git.drupalcode.org (#104)
1 parent 0e00601 commit 13c1ffc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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": "https://cgit.drupalcode.org/drupal/plain/{path}?h={version}",
33+
"source": "https://git.drupalcode.org/project/drupal/raw/{version}/{path}",
3434
"excludes": [
3535
"google123.html",
3636
"robots.txt"
@@ -59,7 +59,7 @@ any HTTP issues.
5959
"extra": {
6060
"drupal-scaffold": {
6161
"source": [
62-
"https://cgit.drupalcode.org/drupal/plain/{path}?h={version}",
62+
"https://git.drupalcode.org/project/drupal/raw/{version}/{path}",
6363
"https://raw.githubusercontent.com/drupal/drupal/{version}/{path}"
6464
]
6565
}

src/Handler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ protected function getOptions() {
372372
'includes' => [],
373373
'initial' => [],
374374
'source' => [
375-
'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}',
375+
'https://git.drupalcode.org/project/drupal/raw/{version}/{path}',
376376
'https://raw.githubusercontent.com/drupal/drupal/{version}/{path}'
377377
],
378378
];
@@ -397,7 +397,7 @@ protected function getIncludesDefault() {
397397
/**
398398
* Files from 8.3.x
399399
*
400-
* @see https://cgit.drupalcode.org/drupal/tree/?h=8.3.x
400+
* @see https://git.drupalcode.org/project/drupal/tree/8.3.x
401401
*/
402402
$common = [
403403
'.csslintrc',

tests/FetcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function ensureDirectoryExistsAndClear($directory) {
5858

5959
public function testFetch() {
6060
$fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), new NullIO());
61-
$fetcher->setSource('https://cgit.drupalcode.org/drupal/plain/{path}?h={version}');
61+
$fetcher->setSource('https://git.drupalcode.org/project/drupal/raw/{version}/{path}');
6262
$fetcher->setFilenames([
6363
'.htaccess' => '.htaccess',
6464
'sites/default/default.settings.php' => 'sites/default/default.settings.php',
@@ -70,7 +70,7 @@ public function testFetch() {
7070

7171
public function testInitialFetch() {
7272
$fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), new NullIO());
73-
$fetcher->setSource('https://cgit.drupalcode.org/drupal/plain/{path}?h={version}');
73+
$fetcher->setSource('https://git.drupalcode.org/project/drupal/raw/{version}/{path}');
7474
$fetcher->setFilenames([
7575
'sites/default/default.settings.php' => 'sites/default/settings.php',
7676
]);

0 commit comments

Comments
 (0)