From 13c1ffc7dd4925cb03707759128b85c0cd6276f8 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Sat, 30 Mar 2019 11:41:38 +0100 Subject: [PATCH] Replace cgit.drupalcode.org with git.drupalcode.org (#104) --- README.md | 4 ++-- src/Handler.php | 4 ++-- tests/FetcherTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 69f179a..b0644d2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ of your root `composer.json`. { "extra": { "drupal-scaffold": { - "source": "https://cgit.drupalcode.org/drupal/plain/{path}?h={version}", + "source": "https://git.drupalcode.org/project/drupal/raw/{version}/{path}", "excludes": [ "google123.html", "robots.txt" @@ -59,7 +59,7 @@ any HTTP issues. "extra": { "drupal-scaffold": { "source": [ - "https://cgit.drupalcode.org/drupal/plain/{path}?h={version}", + "https://git.drupalcode.org/project/drupal/raw/{version}/{path}", "https://raw.githubusercontent.com/drupal/drupal/{version}/{path}" ] } diff --git a/src/Handler.php b/src/Handler.php index 51f1233..cfb5fd9 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -372,7 +372,7 @@ protected function getOptions() { 'includes' => [], 'initial' => [], 'source' => [ - 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', + 'https://git.drupalcode.org/project/drupal/raw/{version}/{path}', 'https://raw.githubusercontent.com/drupal/drupal/{version}/{path}' ], ]; @@ -397,7 +397,7 @@ protected function getIncludesDefault() { /** * Files from 8.3.x * - * @see https://cgit.drupalcode.org/drupal/tree/?h=8.3.x + * @see https://git.drupalcode.org/project/drupal/tree/8.3.x */ $common = [ '.csslintrc', diff --git a/tests/FetcherTest.php b/tests/FetcherTest.php index df2a973..60f67d4 100644 --- a/tests/FetcherTest.php +++ b/tests/FetcherTest.php @@ -58,7 +58,7 @@ protected function ensureDirectoryExistsAndClear($directory) { public function testFetch() { $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), new NullIO()); - $fetcher->setSource('https://cgit.drupalcode.org/drupal/plain/{path}?h={version}'); + $fetcher->setSource('https://git.drupalcode.org/project/drupal/raw/{version}/{path}'); $fetcher->setFilenames([ '.htaccess' => '.htaccess', 'sites/default/default.settings.php' => 'sites/default/default.settings.php', @@ -70,7 +70,7 @@ public function testFetch() { public function testInitialFetch() { $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), new NullIO()); - $fetcher->setSource('https://cgit.drupalcode.org/drupal/plain/{path}?h={version}'); + $fetcher->setSource('https://git.drupalcode.org/project/drupal/raw/{version}/{path}'); $fetcher->setFilenames([ 'sites/default/default.settings.php' => 'sites/default/settings.php', ]);