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

Breadcrumb

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

function GitDownloader::stashChanges

@phpstan-return PromiseInterface<void|null>

Throws

\RuntimeException

1 call to GitDownloader::stashChanges()
GitDownloader::cleanChanges in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php
@inheritDoc

File

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

Class

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

Namespace

Composer\Downloader

Code

protected function stashChanges(string $path) : PromiseInterface {
    $path = $this->normalizePath($path);
    if (0 !== $this->process
        ->execute([
        'git',
        'stash',
        '--include-untracked',
    ], $output, $path)) {
        throw new \RuntimeException("Could not stash changes\n\n:" . $output);
    }
    $this->hasStashedChanges[$path] = true;
    return \React\Promise\resolve(null);
}

API Navigation

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