Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GitDownloader.php

function GitDownloader::hasMetadataRepository

@inheritDoc

Overrides VcsDownloader::hasMetadataRepository

3 calls to GitDownloader::hasMetadataRepository()
GitDownloader::doUpdate in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php
@inheritDoc
GitDownloader::getLocalChanges in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php
@inheritDoc
GitDownloader::getUnpushedChanges in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php
Checks for unpushed changes to a current branch

File

vendor/composer/composer/src/Composer/Downloader/GitDownloader.php, line 619

Class

GitDownloader
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Downloader

Code

protected function hasMetadataRepository(string $path) : bool {
    $path = $this->normalizePath($path);
    return is_dir($path . '/.git');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal