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

Breadcrumb

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

function GitDownloader::reapplyChanges

@inheritDoc

Overrides VcsDownloader::reapplyChanges

File

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

Class

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

Namespace

Composer\Downloader

Code

protected function reapplyChanges(string $path) : void {
    $path = $this->normalizePath($path);
    if (!empty($this->hasStashedChanges[$path])) {
        unset($this->hasStashedChanges[$path]);
        $this->io
            ->writeError('    <info>Re-applying stashed changes</info>');
        if (0 !== $this->process
            ->execute([
            'git',
            'stash',
            'pop',
        ], $output, $path)) {
            throw new \RuntimeException("Failed to apply stashed changes:\n\n" . $this->process
                ->getErrorOutput());
        }
    }
    unset($this->hasDiscardedChanges[$path]);
}

API Navigation

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