Merge pull request from GHSA-47f6-5gq3-vx9c
parent
fc57b93603
commit
b93fc6ca43
|
@ -290,7 +290,7 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
|
||||||
$unpushedChanges = null;
|
$unpushedChanges = null;
|
||||||
}
|
}
|
||||||
foreach ($remoteBranches as $remoteBranch) {
|
foreach ($remoteBranches as $remoteBranch) {
|
||||||
$command = sprintf('git diff --name-status %s...%s --', $remoteBranch, $branch);
|
$command = sprintf('git diff --name-status %s --', ProcessExecutor::escape($remoteBranch.'...'.$branch));
|
||||||
if (0 !== $this->process->execute($command, $output, $path)) {
|
if (0 !== $this->process->execute($command, $output, $path)) {
|
||||||
throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
|
throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue